Orient images based on exif
-
My upload directory contains images taken by iphones and HTTP posted to the site. The pixels in the images are always stored as if the camera was in a landscape orientation; code looking at them is expected to rotate the images based on the EXIF “orientation” field to display them properly.
Here’s an example folder with pictures I took on my iphone. one in each orientation. in all cases, the world appeared right-side-up when i took the picture and it appears right-side-up when i view the image on my phone or mac. i’ve named the images based on what “exiftool -Orientation img.jpg” says:
http://duelight.com/scratch/?galleryfolder=orient
Is there a flag I can set somewhere to enable this rotation for the _cache’d images?
If not, would it be reasonable for ezg to respect it while generating the cached images or add css to rotate the images appropriately when displaying them? Or should i just make my posting program do the rotation?thanks,
abwordpress: 3.5.1
eazyest-gallery: Version 0.1.0-RC-14
gallery folder: forScratch/
The topic ‘Orient images based on exif’ is closed to new replies.