• Resolved johannesdb

    (@johannesdb)


    Hi,

    when I enable the option to force JPEG re-compression, images are rotated if the original rotation is specified in EXIF data.

    I would expect the plugin to preserve that rotation when re-compressing.

    It is possible to preserve the rotation while still deleting the exif data that I can see in an old post that most of your user want?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi there!

    Unfortunately that is out of our control. Some devices do not capture images in the correct orientation, and instead they are writing the EXIF orientation to the image instead. Therefore, when the EXIF is deleted, the orientation information will be lost.

    I hope that helps understand the issue!

    Thread Starter johannesdb

    (@johannesdb)

    Hi

    it does – but my point was that it could maybe be possible to do the recompression before the EXIF data is stripped. WordPress does not remove the EXIF data on upload as the image has the correct rotation before EXIF data is deleted.

    So would it not be possible to do the forced recompression before the EXIF data is deleted and do the recompression respecting the EXIF data? For example using exiftran?

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi johannesdb,

    I believe that would not make a difference. If the orientation information is in the EXIF data, it would not matter when the re-compression is done; anyway the orientation data will be removed, and it is not something that can be embedded in the picture.

    If you meant to rotate the image according to the EXIF data, I would have to consult with our developers if that’s possible, but I am thinking that this would actually become even more problematic, as the plugin would end up rotating images that are not supposed to be rotated.

    If you could provide us with more information about how you would use exiftran, and how your solution would look like, we could take a look at it. Also, since this is a free plugin, any contribution is welcome! https://github.com/short-pixel-optimizer/resize-image-after-upload

    Thanks!

    Thread Starter johannesdb

    (@johannesdb)

    Hi

    I will take a look at the code and see if I can see a solution to rotate images before compression ??

    And thanks for the free and good plug-in ??

    Plugin Support Gerard Blanco

    (@sixaxis)

    All right, johannesdb! We’ll be around if you need further assistance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Images rotated when forced jpg compression is true’ is closed to new replies.