Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Marden 235 posts 338 karma points MVP c-trib
    Sep 23, 2010 @ 17:20
    Paul Marden
    0

    Problem saving cropped image

     

    I've just instealled image cropper on a 4.0.2.4 installation and everything was working fine but then I started getting unhandled errors when I save an image as below:

     

     

    Event code: 3005 

    Event message: An unhandled exception has occurred. 

    Event time: 23/09/2010 16:11:02 

    Event time (UTC): 23/09/2010 15:11:02 

    Event ID: cbdb0bbc71cf40a4a24b91bb7eb620a5 

    Event sequence: 333 

    Event occurrence: 1 

    Event detail code: 0 

     

    Application information: 

        Application domain: /LM/W3SVC/1992667672/ROOT-25-129297257445761337 

        Trust level: Full 

        Application Virtual Path: / 

        Application Path: D:\home\Default\----REmOVEd----.co.uk\htdocs\ 

        Machine name: DSVR009865 

     

    Process information: 

        Process ID: 6888 

        Process name: w3wp.exe 

        Account name: NT AUTHORITY\NETWORK SERVICE 

     

    Exception information: 

        Exception type: ExternalException 

        Exception message: A generic error occurred in GDI+. 

     

    Request information: 

        Request URL: ----REmOVEd----/editMedia.aspx?id=1148 

        Request path: /umbraco/editMedia.aspx 

        User host address: ----REmOVEd----

        User:  

        Is authenticated: False 

        Authentication Type:  

        Thread account name: NT AUTHORITY\NETWORK SERVICE 

     

    Thread information: 

        Thread ID: 23 

        Thread account name: NT AUTHORITY\NETWORK SERVICE 

        Is impersonating: False 

        Stack trace:    at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams)

       at Kenny.Umbraco.DataTypes.ImageCropper.ImageTransform.saveJpeg(String path, Bitmap img, Int64 quality)

       at Kenny.Umbraco.DataTypes.ImageCropper.ImageTransform.Execute(String sourceFile, String name, Int32 cropX, Int32 cropY, Int32 cropWidth, Int32 cropHeight, Int32 sizeWidth, Int32 sizeHeight, Int64 quality)

       at Kenny.Umbraco.DataTypes.ImageCropper.ImageInfo.GenerateThumbnails(SaveData saveData, Config config)

       at Kenny.Umbraco.DataTypes.ImageCropper.DataEditor.Save()

       at umbraco.controls.ContentControl.saveClick(Object Sender, ImageClickEventArgs e) in d:\TeamCity\buildAgent\work\7380c184e9fcd3ea\umbraco\presentation\umbraco\controls\ContentControl.cs:line 158

       at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)

       at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)

       at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)

       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)

       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)

       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

     

     

     

  • John C Scott 473 posts 1183 karma points
    Oct 01, 2012 @ 20:24
    John C Scott
    0

    did you ever work this out ? having a similar problem moving to a deployment server :(

  • Tobias Morf 80 posts 183 karma points
    Oct 11, 2012 @ 16:31
    Tobias Morf
    0

    Same problem with 4.9... :-(

  • John C Scott 473 posts 1183 karma points
    Oct 11, 2012 @ 17:01
    John C Scott
    0

    in the end this turned out to be for me a permissions error

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Mar 07, 2013 @ 09:24
    Rasmus Fjord
    0

    what permissions where you missing john ?

  • Sebastian Dammark 581 posts 1385 karma points
    Mar 21, 2013 @ 15:47
    Sebastian Dammark
    0

    It looks like I'm running into the same problem here:
    http://our.umbraco.org/forum/templating/templates-and-document-types/39457-Error-when-generating-crops-with-ImageCropper

    The "funny" thing is it only happens on my live site. :( 
    So I'm wondering if it permission related.

    Both sites runs with Network Service (Full Control)

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Mar 21, 2013 @ 15:51
    Rasmus Fjord
    0

    We are having the same experience but its only sometimes that it throws the GDI+ error.

    I dont its permission based tbh, we have all the right permissions on our solutions but its still throwing this error at random, and the wierd thing is it actually saves the crop.

     

  • Sebastian Dammark 581 posts 1385 karma points
    Mar 21, 2013 @ 15:51
    Sebastian Dammark
    0

    Apparently it only appears on images uploadet before I made the changes to the data type.

    If I choose to upload a new Image, the is no problem saving and generating thumbnails.

  • Tobias Morf 80 posts 183 karma points
    Mar 21, 2013 @ 15:54
    Tobias Morf
    0

    We had this problem togehter with ImageGen. It somehow access the file without releasing it.

    It worked for us without the ImageGen.

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Mar 21, 2013 @ 15:54
    Rasmus Fjord
    0

    well try to do it a TON of times, ive done it up to 10-20 times in a row on a test scenario without any issues then suddenly try another image and bang GDI+ bug. :/

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Mar 21, 2013 @ 15:57
    Rasmus Fjord
    0

    Oh you might be right Tobias, it could be caused by imagegen keeping lock on the image, gotta pinch Doug to hear if this could occur.

  • Sebastian Dammark 581 posts 1385 karma points
    Mar 21, 2013 @ 16:13
    Sebastian Dammark
    0

    But if it was ImageGen, wouldn't it be solved after a IISRESET ?

  • Rasmus Fjord 675 posts 1566 karma points c-trib
    Mar 22, 2013 @ 08:23
    Rasmus Fjord
    0

    It should imo

  • Anthony Halliday 5 posts 32 karma points
    Mar 03, 2015 @ 12:49
    Anthony Halliday
    0

    The issue for me was after deploying from the QA environment to the Production environment the media folder had a bunch of 'Cached' folders nested in each media directory. Removing these cache folders did the trick for me.

Please Sign in or register to post replies

Write your reply to:

Draft