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?
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"
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.....
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.
Hi,
In Smart Image Utils:
If you’re using server-side logic:
Thanks,
Saicharan