caesium-image-compressor icon indicating copy to clipboard operation
caesium-image-compressor copied to clipboard

Image was accidently rotated

Open sti1l-0 opened this issue 2 years ago • 5 comments

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:

  1. Add a vertical image
  2. Select any option you like and compress
  3. See error

Expected behavior The image keep its origin direction.

Screenshots If applicable, add screenshots to help explain your problem. image

Application Log

Additional context

sti1l-0 avatar Feb 18 '23 06:02 sti1l-0

Does the issue occur if you check the "Keep metadata" checkbox in the compression options?

Lymphatus avatar Feb 18 '23 12:02 Lymphatus

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.

Snipaste_2024-01-08_16-21-40

Software version

The version of Caesium Image Compressor 2.5.1

Operating System information

OS: Windows Version 10

Options are as follows:

Snipaste_2024-01-08_16-21-59

Snipaste_2024-01-08_16-22-08

Snipaste_2024-01-08_16-22-28

Csrayz avatar Jan 08 '24 08:01 Csrayz

@Csrayz The original image is WebP or any other format?

Lymphatus avatar Jan 08 '24 09:01 Lymphatus

@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

Photos.zip

Csrayz avatar Jan 09 '24 03:01 Csrayz

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.

Lymphatus avatar Jan 26 '24 17:01 Lymphatus