4 ms·
What the hell? Why is there an orientation tag at all? Why isn't the picture just rotated by the device that takes it?
by jstanley 14y ago
What the hell? Why is there an orientation tag at all? Why isn't the picture just rotated by the device that takes it?
- micampe 14y agoBecause lossless rotation is fairly expensive computationally so digital cameras have been leaving that job to a computer.
- jonknee 14y agoIn this case the camera is a computer though. A computer that knows its orientation.
- CountHackulus 14y agoNot to mention that it's rotating by +-90 or 180 degrees, which is a whole lot faster than an arbitrary rotation.
- jstanley 14y agoI 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.
- gfosco 14y agoWhy 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.
- smackfu 14y agoOTOH, it has to rotate it for display on the screen, so it can't be that computationally bad.
- jstanley 14y agoNo it doesn't. The screen has the same orientation as the camera. When you hold the phone upside down, you are also holding the screen upside down ;)
- smackfu 14y agoRight, but when you look through your photos laters, it has to transform them so up is up on the display.
- pilif 14y agoBut when browsing through already stored pictures, a bit of delay is totally ok. Not so much when quickly showing some information overlaid over the picture you've just taken.
- deleted 14y ago[deleted]
- deleted 14y ago[deleted]
- nithinbekal 14y agoI suppose the device wouldn't bother with lossless rotation when displaying on the screen. When it comes to saving the image, it has to be lossless, which would probably take a lot more computation power.
- jstanley 14y agoI'm not sure what is referred to by "lossless" rotation in the case of axis-aligned orientation. I can't see how you can do a lossy rotation.
- nithinbekal 14y ago
- smackfu 14y agoThe 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.