Very strange issue

4 posts, 0 answers
  1. Stephanie
    Stephanie avatar
    139 posts
    Member since:
    Aug 2013

    Posted 18 Aug 2015 Link to this post

    I am finally getting this to work the way I want. For some photos it works perfectly. I use a browse button to select the image, click upload and it populated the image editor with that image. I can then use the save icon in the toolbar to save the image and close the RadWindow the ImageEditor is in. 

     

    The strange part is for a few images that does not work. I can browse, select and upload the image, but the save portion does nothing. The upload shows the green dot, so the image file is valid. It is even uploaded into the temp directory. So why would the save code not fire for certain images. I can consistently reproduce what images it is for.

    It is not the file size as one of the ones with an issue is smaller than one that works fine. 

    Any Ideas?

  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 21 Aug 2015 Link to this post

    Hi Stephanie,

    There are two possible reasons I can think of that can prevent the ImageEditor from saving the edited image properly:
    • the image is too big or
    • the image is corrupted

    Please note that even if the initial size of the problematic image is less than the other images, it can increase during the image editing. As the ImageEditor saves its edited image data on the client as a Json string, I would strongly advice that you follow the instructions from the following help article and see whether this will make a difference: Saving Large Images

    If this does not help, can you please attach one of the problematic images to your next reply, so we can test it on our side?

    Regards,
    Vessy
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Stephanie
    Stephanie avatar
    139 posts
    Member since:
    Aug 2013

    Posted 21 Aug 2015 in reply to Vessy Link to this post

    Hello Vessy,

     

    Thanks for the reply. How can the size change during editing, if all I did was upload it and then click the 'save' icon in the toolbar. I didn't crop, resize or anything...

    But the solution in the linked post seemed to fix it, at least for that image. Thanks!

     

  5. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 25 Aug 2015 Link to this post

    Hi Stephanie,

    The reason for the changed size of the image is when ImageEditor is used in Canvas mode (enabled by default) the image is represented in the canvas as base64 string. Upon saving the Json data representing the image (the mentioned string) in sent to the server and so it is saved as a new image, so the size of the new image depends on that.

    In order to avoid this behavior you can disable the canvas mode of the control (CanvasMode="No"), but this will also prevent you from using functionality like drawing and image filters.

    I hope this explanation will shed some light on the subject.

    Regards,
    Vessy
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top