Live data from Hacker News

"My images are all upside down"

gigpeppers.com

11–20 of 47 posts

Re: "My images are all upside down"

#11
post #8

What the hell? Why is there an orientation tag at all? Why isn't the picture just rotated by the device that takes it?

Why should it rotate, when it can use the standard method for notating the proper rotation? Your camera would be a lot slower if it had to rotate 16MP images between snaps.

Re: "My images are all upside down"

#14
post #10
post #8

What the hell? Why is there an orientation tag at all? Why isn't the picture just rotated by the device that takes it?

Because lossless rotation is fairly expensive computationally so digital cameras have been leaving that job to a computer.

In this case the camera is a computer though. A computer that knows its orientation.

Re: "My images are all upside down"

#15
During the holiday break I spent some time learning about EXIF data and subsequently released Exif.in[0], a simple HTTP API for viewing EXIF data inside images and requesting EXIF-stripped copies as well.

If you're a developer who needs to occasionally inspect EXIF data from user uploads, please check it out. Contact me if you have additional questions, I'm happy to help.

[0] http://exif.in

Re: "My images are all upside down"

#16
post #10
post #8

What the hell? Why is there an orientation tag at all? Why isn't the picture just rotated by the device that takes it?

Because lossless rotation is fairly expensive computationally so digital cameras have been leaving that job to a computer.

I was assuming the rotation tag only expressed axis-aligned rotation, in which case lossless rotation is not that expensive compared to taking the photo in the first place.

Re: "My images are all upside down"

#17
post #11
post #8

What the hell? Why is there an orientation tag at all? Why isn't the picture just rotated by the device that takes it?

Why should it rotate, when it can use the standard method for notating the proper rotation? Your camera would be a lot slower if it had to rotate 16MP images between snaps.

OTOH, it has to rotate it for display on the screen, so it can't be that computationally bad.

Re: "My images are all upside down"

#18
post #5

What puzzles me is that Windows XP up to Windows 7 built-in picture viewer does not support proper orientation of iPhone photos with the original EXIF metadata in place. Picasa (on Windows) handles that perfectly, as well as (obviously) all apps in OS X. What the hell Microsoft? Is this a political thing or is there a valid technical reason?

I don't think it's either of those things. I had problems with Windows Phones and getting the orientation right in Picture Viewer as well. I don't think it's politics, I don't think it's a valid technical reason, I think it's just an oversight.

Re: "My images are all upside down"

#19
post #8

What the hell? Why is there an orientation tag at all? Why isn't the picture just rotated by the device that takes it?

The theory is that you have the image off the sensor, and then you have metadata about the image in the EXIF fields. The debatable point is whether orientation should be treated as metadata or is inherent to the image data. On early digital cameras, this wasn't so debatable since adding an orientation sensor was a deluxe feature that really did just add another bit of data to the photo.

Re: "My images are all upside down"

#20
post #14
post #10

Earlier quoted context omitted.

Because lossless rotation is fairly expensive computationally so digital cameras have been leaving that job to a computer.

In this case the camera is a computer though. A computer that knows its orientation.

Not to mention that it's rotating by +-90 or 180 degrees, which is a whole lot faster than an arbitrary rotation.
Post reply on HN