I've taken a photo using a DSLR in portrait orientation and resized it using PHP/ImageMagick. After uploading to Amazon S3, I noticed that if I were to view the image using Chrome and Internet Explorer, it will be rotated 90 degs into a landscape orientation, but if viewed using Firefox, its a portrait orientation!
Question: This is extremely puzzling to me, what is causing it to rotate and how can we fix the orientation?
Even on a webpage, a simple <img />
tag used to load the image causes different orientation! When viewed using Window 8's Window Photo Viewer, the photo is in portrait orientation.
The image can be viewed at https://s3.amazonaws.com/someRandomTest/1000108_medium.jpg
Update
identify -verbose 1000108_medium.jpg
shows Orientation: Undefined
Canon DSLR photos have the unintended rotation. Nikon DSLR photos do not.