This is a migrated thread and some comments may be shown as answers.

Very strange issue

3 Answers 50 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
DogBizPro
Top achievements
Rank 1
DogBizPro asked on 18 Aug 2015, 08:10 PM

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?

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 21 Aug 2015, 10:39 AM
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
0
DogBizPro
Top achievements
Rank 1
answered on 21 Aug 2015, 02:22 PM

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!

 

0
Vessy
Telerik team
answered on 25 Aug 2015, 01:40 PM
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
Tags
ImageEditor
Asked by
DogBizPro
Top achievements
Rank 1
Answers by
Vessy
Telerik team
DogBizPro
Top achievements
Rank 1
Share this question
or