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

Image compression and quality

1 Answer 194 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
KungFuCoder
Top achievements
Rank 1
KungFuCoder asked on 13 Oct 2011, 11:25 PM
I am trying to find a way to control the compression and quality of the image saved by the ImageEditor.    

Currently running the saveImageOnServer command:
imageEditor.saveImageOnServer("", true)

connected to a  "SaveImage" tool
 <telerik:ImageEditorTool CommandName="SaveImage" ToolTip="Save Image" />
 

I loaded an image with following properties:
Width = 1024px
Height = 768px
Size = 606KB
DPI = 96
BitDepth = 24

I cropped the image to 1013 x 638 and saved the image. 

The properties of the file changed to:
Width = 1013px  Height = 638px Size = 1.32MB  DPI = 96 BitDepth = 32

I was hoping the file size would decrease but I imagine file size increase has to do with the BitDepth increasing.   How can I control this with the ImageEditor control? 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Oct 2011, 02:02 PM
Hello Kungfucoder,

RadImageEditor does not offer a way to chance / customize the image compression out-of-the box, but you should be able use the OnImageSaving server event to compress the image before it is saved.

Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
ImageEditor
Asked by
KungFuCoder
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or