21
Views
4
Comments
Size changes when rotating an image with Smart Image Utils
Question

Using the Smart Image Utils to rotate an image, changes the size. I used the demo app with a picture (jpg) of 230 kB. When using the button 'Rotate and Download' I get the rotated image, but now it is 5.258 kB. How can this happen? 

The size also changes when using for example the Original Aspect Ratio Resizer. I used the width (from 1920 to 800) to resize and expected a smaller image size, but got a bigger one (1.025 kB, before resize it was 230 kB). 

Can anyone explain this?

UserImage.jpg
Łukasz Kaproń

Hi Pauline

I think, it is hard to answer your question, but in my opinion the compression settings that are used by " Smart Image Utils " during re-encoding may differ from the original. To solve your problem you can try to use "Compress_Image" and/or "Convert_Image"

UserImage.jpg
Pauline

Thanks for your answer!

It seems a little weird that when you rotate an image 90 degrees the image size changes. In my opinion it should be the same.
I've also tested the Compress image functionality. Original size of my image is still 230 kB, the resulting size after compressing is always 4.965 kB, whatever compression level I use. 
It looks like that doesn't work either.....

2025-07-22 10-30-27
Mandar Deshpande

Hi @Pauline 

The rotated image became much smaller because when Smart Image Utils rotates the image, it likely re-encodes the image, uses a default compression quality (often lower than original). So even though the pixels are similar, the new file has less metadata and is more aggressively compressed.

Resizing made it bigger because very likely there could be a format change. If the tool outputs PNG instead of JPEG, then PNG is lossless, JPEG is lossy. 

A resized PNG can easily be much bigger than the original JPEG.

UserImage.jpg
Saicharan

Hi,

In Smart Image Utils:

  • Look for quality/compression parameters
  • If not exposed:
    • Modify the underlying action (often uses .NET or Java image libraries)
    • Explicitly set JPEG quality (e.g., 70–80 for web use)

If you’re using server-side logic:

  • Ensure you pass a quality parameter when saving JPEG
  • Avoid default settings (they’re often high quality → large files)

Thanks,

Saicharan

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.