Rotation and exif orientation observation
jnash
Joined: 2004-08-02
Posts: 814 |
Posted: Wed, 2013-04-17 14:26 |
I'm wondering if anyone else has encountered this: When Gallery rotates an image based on the exif orientation flag, the image is physically rotated and saved. However, the exif orientation flag is not updated to reflect this rotation. When viewing the images on a viewer that honors to the exif orientation tag (PS3, iPhone/iPad(mobile safari) then the image is rotated and distorted automatically by the viewer. (IE: the height/width are right, but the image is rotated into this dimension) I've been working around the 'issue' by running a script that resets the exif orientation flag on all images (thumbs/resizes/full) to '1' or "Top-Left" as this reflect the image appropriately once it is physically rotated. I'll see if I can post up an example later. I'm sure this is a bug in jpegtran, not the gallery itself. I'm probably using an older jpegtran that's not updating the exif flag when it rotates. EDIT: |
|
Posts: 814
Bingo:
Posts: 814
and more:
Posts: 814
Just posted for informational purposes... In case anyone experiences the issue.
(I was alerted by an iPad user that some of my images looked 'funny' [rotated and squished])
However, I'm thinking of patching the rotation code to update the exif tag as well. (at least for my use)
1) This will work for images rotated within gallery
2) This will still be broke as I use gallery_remote to upload pictures and I rotate within gallery_remote (also using jpegtran) prior to uploading
2a) Maybe I shouldn't rotate in gallery_remote and then turn on the autorotate module in gallery - which should then update the flag base on my patch...
3) hmmm