Image compression and quality

2 posts, 0 answers
  1. KungFuCoder
    KungFuCoder avatar
    1 posts
    Member since:
    Oct 2011

    Posted 13 Oct 2011 Link to this post

    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? 
  2. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 14 Oct 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top