Image Crop - File size larger than original image

7 posts, 0 answers
  1. Jason Brownhill
    Jason Brownhill avatar
    55 posts
    Member since:
    Jun 2009

    Posted 15 Feb 2011 Link to this post

    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.
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 15 Feb 2011 Link to this post

    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 >>

  3. Jason Brownhill
    Jason Brownhill avatar
    55 posts
    Member since:
    Jun 2009

    Posted 15 Feb 2011 Link to this post

    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.
  4. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 15 Feb 2011 Link to this post

    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 >>
  5. Jason Brownhill
    Jason Brownhill avatar
    55 posts
    Member since:
    Jun 2009

    Posted 15 Feb 2011 Link to this post

    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.

  6. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 17 Feb 2011 Link to this post

    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
  7. Jason Brownhill
    Jason Brownhill avatar
    55 posts
    Member since:
    Jun 2009

    Posted 17 Feb 2011 Link to this post

    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.
Back to Top