I'm developing a PHP website, and when I upload a photo taken from the ipad in portrait mode, it appears in landscape on the website, yet when I upload the very same photo from the computer (no changes made to the photo) it appears correctly in landscape mode. All landscape photos appear in landscape orientation just fine.
I've tried to find a way to fix this, and read about getting the orientation from the EXIF data, but the "orientation" tag is actually always the same (1 if I remember correctly) whether the photo has been taken in landscape or portrait.
I've tried to upload a portrait photo to flickr from the ipad and it appears correctly in portrait mode, so what am I missing?
Thanks.