Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

alt text

iPad alt text

share|improve this question
duh. he's in morganton. have you ever been to morganton? you'd be off-kilter too. – quack quixote May 5 '10 at 21:01
Is it true that in Scotland, you can be arrested for being an off-kilter? – mmyers May 5 '10 at 21:43
@earlz please stop adding ridiculous tags to posts. I'm getting to the point where this is a warning. – Jeff Atwood May 5 '10 at 22:48
@Jeff... :( ok...... But but. But. Jarrod needs his own.. But. The new meme.. But.. sigh ok. – Earlz May 5 '10 at 22:50
I was so tempted to not fix and just mark this status-bydesign, but we gots to look professional now! – Jarrod Dixon May 6 '10 at 2:37
up vote 10 down vote accepted

The camera this photo was taken with (Canon PowerShot A630) detects the orientation of the camera when the photo was taken to automatically rotate it. However rather than physically rotating the jpeg, it sets the orientation in the exif meta data. Since a lot of programs ignore this flag, someone has then physically rotated the photo to correct it manually, but left behind the exif setting. Obviously whatever the iphone/ipad use to render images reads the exif info, so it applies a second rotation to "correct" the image, meaning it displays sideways.

share|improve this answer
Hence the reason that embedding orientation in an image is pure evil. My phone can do this and the pictures will be side ways and I'll turn my phone and it will "correct" the orientation for me and keep it sideways. Pure evil I tell you – Earlz May 6 '10 at 0:00
Ya - it's better to just rotate it (the image) in-camera instead of relying on any auto-detection stuff. – uɐɯsO uɐɥʇɐN May 6 '10 at 0:02
@Earlz - It's great in theory (100% lossless & instant rotations) iff all software supported it. But given most software doesn't & half of those that do are built by monkeys like your phone example, I have to concede that yes, in practice it is evil. – Alconja May 6 '10 at 1:48
@George - Its not really about the auto-detection, its about the implementation of "rotate". Rotating it as you describe in-camera wouldn't help if your camera did it by changing the exif orientation. – Alconja May 6 '10 at 1:50
Very cool observation - I opened the image in Photoshop; sure enough, it was rotated as depicted in the question! Simple to fix, thanks for the info! – Jarrod Dixon May 6 '10 at 2:36
@Jarrod - it may take some time for you to regain your balance after fixing this. This is normal, as the fluid in your inner ear will need to settle. – user27414 May 6 '10 at 3:26
Nice answer, but you left me wondering why a browser would take Exif information into account... – Arjan May 6 '10 at 17:37
@Arjan: My (completely unverifiable) guess is that its a combination of three things: 1) the iphone has a camera & can detect its orientation, so photos taken by it store orientation information in the exif information. 2) When viewing the image back on the iphone it reads the exif information so it automatically gets displayed the "right way up". 3) The browser uses the same underlying image rendering engine, meaning it also reads the exif information. (then of course the ipad does the same thing even though it doesn't have a camera since its the same code base) – Alconja May 7 '10 at 2:25
But still why... I guess it's a bug after all: a browser should not do that. Maybe it's even showing the Exif preview itself, so one could specify another image for the iPad. ;-) I also wonder what the iPad will do with specified HTML width and height attributes then... – Arjan May 7 '10 at 5:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .