Closed k3b closed 3 years ago
Hi @k3b
Thanks for your question. What you can do is check the ruleName
member of the SpectrumResult
returned by the transcode method to check which rule has been used.
libjpeg_lossless_rotate_and_crop
is the lossless rule. This should confirm wether spectrum is doing a lossless or lossy operation.
In my android app https://github.com/k3b/LosslessJpgCrop/ I use sprectrum to do lossless cropping/rotation of jpg images
I have observed that rotating a jpg image without cropping the file size changes it-s file size and rotation is done throuh image manipulation.
I would have expected that only the exif-orientation flag is updated.
If i rotate an image with exif-orientation=90 degrees by 180 degrees i expect the same image but with orientation 270 degrees.
The current code does an image-rotation transformation and result exif-orientation is always 0
Although rotating changes image-file size, is it still loss-less?
I am using this code: