caesium-image-compressor
caesium-image-compressor copied to clipboard
Image was accidently rotated
Describe the bug I input a image that resolution is 4024*6048, as you can see that is a vertical image.
Whatever "resize to fit" option I use, the output image is always in horizontal resolution like 6048*4024.
Software version The version of Caesium Image Compressor 2.3.1
Operating System information
- OS: Windows
- Version 11
To Reproduce Steps to reproduce the behavior:
- Add a vertical image
- Select any option you like and compress
- See error
Expected behavior The image keep its origin direction.
Screenshots
If applicable, add screenshots to help explain your problem.
Application Log
Additional context
Does the issue occur if you check the "Keep metadata" checkbox in the compression options?
When compressing to webp is selected, the image is still incorrectly rotated. Images are not rotated unexpectedly when trying to compress to jpg or png.
Software version
The version of Caesium Image Compressor 2.5.1
Operating System information
OS: Windows Version 10
Options are as follows:
@Csrayz The original image is WebP or any other format?
@Csrayz原图是WebP还是其他格式?
The original image is a jpg, and when I tested it, I found that only certain images produced these kinds of strange phenomena. The operation recording and source files are attached below.
https://github.com/Lymphatus/caesium-image-compressor/assets/33659823/e38b28f9-8015-4ec0-a643-b1527d8f8ede
This should not happen when the output format is the same as the original file, but can occur if, for example, the original is JPG and the output is WebP. It's related to #196 because Caesium cannot keep the metadata of the original file if is compressing to another format. I'm working on a solution for this.