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

Image Crop - File size larger than original image

6 Answers 358 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Jason Brownhill
Top achievements
Rank 1
Jason Brownhill asked on 15 Feb 2011, 01:00 PM
Hi,
 I've installed version 5.8.0.0 and have found that the image editor increases the size of the image when cropping an original image. Is there a way to change the image quality setting on cropping so that it doesn't increase in size? Theoretically, the cropped image should be MUCh smaller than the original image.

Thanks,
Jason.

6 Answers, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 15 Feb 2011, 01:37 PM
Hi Jason,

In general RadEditor uses the .NET framework image editing engine. Unfortunately there is no easy way of changing this functionality.


Greetings,
Stanimir
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Jason Brownhill
Top achievements
Rank 1
answered on 15 Feb 2011, 02:06 PM
Hi Stanimir,
 Thanks for the answer, but logically, this is a crazy result of cropping an image. No software I know of would do this and for a web application, this is a key factor. Please raise this on your technical request pages for a future fix?

Thanks,
Jason.
0
Stanimir
Telerik team
answered on 15 Feb 2011, 03:52 PM
Hi Jason,

Actually this issue is logged in our bug-tracking system. Unfortunately at this point we have not been able to reproduce it at our side. Could you provide us with a little bit more information. Does the problem occurs with all the images, which you edit? Also could you provide us with a sample image, which we can use to reproduce the issue.

Thank you.


Best wishes,
Stanimir
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
0
Jason Brownhill
Top achievements
Rank 1
answered on 15 Feb 2011, 05:03 PM

Hi Stanimir,
 More than happy to help provide more information. These are the steps I've taken to reproduce the problem :-

1. click on the add image icon - Image Manager
2. select the PublishingImagesLibrary
3. Create new folder (empty)
4. Upload new image
5. Select new image
6. click on Image Editor - Image Manager closes and Image Editor opens
7. click on enable crop
8. set crop area - defaults kept
9. click on save image
10. select new thumb that appears in the image file navigation window
11. click on insert new image

 To get different file size results it appears to be related to the crop window and how that is interacted with. I found the following scenario's to be applicable for the version i'm using :-

1. Enable crop, move the crop window elsewhere in the image, dont resize it and save the image. Image is saved very small as expected
2. Enable crop, DONT move the crop window or change size and save the image. Image is saved extremely large
3. Enable crop, move the crop window, change the crop window size (either by moving the window boxes or in the settings window) and save the image. Image sometimes appears larger, sometimes smaller

I'll send the image examples to clientservice@telerik.com shortly.

Thanks,
Jason.

0
Stanimir
Telerik team
answered on 17 Feb 2011, 12:48 PM
Hi Jason,

Thank you for the provided information. I was able to reproduce the issue on our side. I also spoke with the developer, which is responsible for the enhancing if the ImageEditor. Unfortunately he explained that at this point there is not much that we can do on the problem. We are using the .NET framework library for images editing and it has its limitations. He told me that at this point we achieve reasonable balance between image quality and size. If you have our source code you can modify the RadEditor's functionality. You can find the Crop functionality in the Crop method of the ImageEditor class, which is defined in the ImageEditor.cs file, which is located in the Editor\DialogControls\ImageEditor folder of the Telerik.Web.UI project.


All the best,
Stanimir
the Telerik team
0
Jason Brownhill
Top achievements
Rank 1
answered on 17 Feb 2011, 06:02 PM
Hi Stanimir,
 Thanks for that - I've downloaded the source code and we'll take a look at this locally.

 Thanks again as always for your prompt support and advice. It is very much appreciated.

Regards,
Jason.
Tags
WebParts for SharePoint
Asked by
Jason Brownhill
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Jason Brownhill
Top achievements
Rank 1
Share this question
or