4 ms·
> then I tried making my own image gallery and I learned that browsers do not honor the JPEG rotation EXIF data and I don't want to write my own rotation/croppi
by xwdv 7y ago
> then I tried making my own image gallery and I learned that browsers do not honor the JPEG rotation EXIF data and I don't want to write my own rotation/cropping code
This just sounds like an excuse to yourself. It’s not hard to deal with this just strip out the EXIF data and bake the rotation into your images on upload. Problem solved, though I don’t know your experience level.
- twic 7y agoOr even just detect the rotation tag, leave the image untouched, and rotate it in CSS.
- xwdv 7y agoToo many edge cases I’d say. Images really shouldn’t be stored anyway with rotation data in the EXIF. By pre rotating it you normalize and make it ready to use in any context. The EXIF should be stripped out and used for other sorts of analytics.