3 ms·
Somehow, even photographs taken more than 30 years ago get flipped upsidedown when posted on the internet. Flipping images with metadata tags, which are inevit
by lupusreal 2y ago
Somehow, even photographs taken more than 30 years ago get flipped upsidedown when posted on the internet. Flipping images with metadata tags, which are inevitably ignored or stripped, has proven to be an extremely user hostile technical decision.
- lelandfe 2y agoImages can be rotated with metadata? Is that finally an explanation for why I’ll sometimes rotate an image on my computer, upload it, and find the uploaded copy in the original rotation?
- jefftk 2y agoFor JPEG this is the EXIF Orientation flag: https://jdhao.github.io/2019/07/31/image_rotation_exif_info/ https://jdhao.github.io/2019/07/31/image_rotation_exif_info/ It allows the camera to write almost its output without considering how you're holding the camera, and then write just three bits to indicate how it should be displayed. (It should be two bits, since the third logical bit is for mirroring, except the specific flag values they chose for the non-mirrored rotations were 0x0, 0x2, 0x5, and 0x7.)
- dunham 2y agoYeah and web browsers ignore it for compatibility with web browsers that ignored it. I believe rotation is lossy if you don't do it in metadata and the file is using subsampling. Edit: some sites will rotate the file on upload, especially for scaled, non-original versions, to avoid this issue. I've done this at work in the past.
- Mistletoe 2y agoSo frustrating to try and look at these.
- fckgw 2y agoIf you scroll down into the PDF they're also there in the correct orientation.