• Resolved willemb2

    (@willemb2)


    All our Postie posts come from smartphones. If they add photo’s that have been taken in portrait mode (phone held vertical) they still appear in landscape (horizontal) position in the blog post. As I understand it, most spartphones store all images in landscape mode, but add an EXIF parameter “Orientation”. If I download mis-oriented image from the WP Media Library it appears that this “Orientation” parameter has been stripped from the EXIF info. It could very well be that WordPress itself is doing this. But I expect that many other Postie users have been confronted with this so: does anyone know a solution or workaround?
    I noticed that there are several plugins with names like “Image Rotation Fixer” that claim to fix this for WP in general, but none of them seems to work with 4.7.5.
    You cannot rely on browsers to respect this EXIF parameter. At least, this is Microsofts position on it: https://support.microsoft.com/en-us/help/2001954/picture-orientation-set-by-a-camera-is-not-honored-by-windows-or-windows-applications

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Unfortunately there isn’t a universal fix. The Image Rotation Fixer works for many people, but not all.
    The utilities WordPress and various plugins use to resize images often strip the EXIF data which is what is needed to determine the correct orientation.

    Thread Starter willemb2

    (@willemb2)

    What I would expect from those utilities is to actually flip the image based on the EXIF Orientation parameter. If I edit an image in the media library there are buttons to flip the image manually and they seem to actually recode the image data to flip it. So somewhere deep in WordPress there is the code to do that.
    I downloaded some images that have been posted using Postie. Most of them still contain EXIF data includingthe Orientation parameter, but only if it had the value ‘Top left’. I have seen two examples where the original had Orientation: ‘Right top’. Those two still have all EXIF data except Orientation. So when images enter the media library there is a process that actually looks at this parameter and takes action based on the value. We’re almost there, I would say. But I’m not a software developer…
    I tried several plugins: with Image Rotation Fixer I cannot upload pictures from recent Sony Xperia smartphones if they were taken in portrait mode.
    iOS Images Fixer works, but – as the name suggests – only for images from iPhones/iPads. Apparently it looks at another parameter.
    Fix Image Rotation did not work at all.

    Hello,
    I face the same problem as willemb2.
    Is there a solution meanwhile?
    Thank you

    Plugin Author Wayne Allen

    (@wayneallen-1)

    @hkr Have you tried the Image Rotation Fixer plugin?

    Yes I tried this.
    It did work partially.
    The images are rotated correctly, but the thumbnails and other dimensions are not.
    You can see it here:
    https://sj-urflur.de/test-2/

    Thread Starter willemb2

    (@willemb2)

    Like so many WP plugins, the Image Rotation Fixer has not been updated for over 2 years. The author created it as an internship-project. He never replied to any problem report on the plugin’s support forum https://ww.wp.xz.cn/support/plugin/image-rotation-repair. The last positive rating was 1 year 8 months ago. Still people keep recommending it 🙁

    I have never found an alternative that works with recent WP versions.

    IMHO the EXIF “Orientation” parameter is a disaster. Maybe it is useful within smartphone apps, but as soon as the image leaves the smartphone it causes nothing but trouble.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    I just tested all the rotation fixers I could find:

    “Image Rotation Repair” – Worked on most, but not all.

    “iOS Images Fixer” – Worked on none.

    “Image Rotation Fixer” – Worked on none.

    “Fix Image Rotation” – Worked on most, but not all (recently updated).

    Ultimately “Image Rotation Repair” and “Fix Image Rotation” worked the best. At some level all the tools are limited by the data embedded in the image. If the data is wrong or missing then there isn’t much the tool can do.

    Thank you!
    “Fix Image Rotation” is my choice and at a first test with an iPhone it is successful.
    I have no other smartphones so I have to wait for other testings.
    Thank you very much for your support!

    Thread Starter willemb2

    (@willemb2)

    When you say “worked” do you mean that it worked with Postie? So if I send a picture from a smartphone that is held in portrait position (EXIF Orientation parameter value 6 = “right, top” aka “rotate 90 CW”) with Postie, will it appear in portrait position in my WP post?

    I had not even tried “Image Rotation Repair” because the plugin page says “Tested up to: 3.2.1”. I will try it when I find the time.

    Yes it worked with postie the way you described
    I did not check the exact EXIF value ( don’t know how) but the success is visible.
    🙂

    Plugin Author Wayne Allen

    (@wayneallen-1)

    I was able to send all of the sample images from https://github.com/recurser/exif-orientation-examples to Postie with “Fix Image Rotation” active and each image was correctly displayed.

    Thank you for the link. I tested it too and it was successful.
    Have a nice day!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘wrong image orientation and EXIF’ is closed to new replies.