f3ndot / doorprize

A Rails application where cyclists who were "doored" can report their incident for the purpose of gathering statistics
www.doored.ca
MIT License
14 stars 0 forks source link

Rotate image automatically based off of EXIF Orientation metadata #49

Open f3ndot opened 10 years ago

f3ndot commented 10 years ago

Some images (below) have the EXIF data Orientation set to 6.

The system needs to respect that and generate the thumbnails appropriately. Maybe detect the orientation, rotate it to be upright, and strip the orientation meta data to prevent browsers from applying the EXIF data to the already-rotated image.

Implementation would take place in PhotoUploader as one of the process steps in both the original and :thumb versions.

20130821_104747 Take from Incident #16.

References: http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/EXIF.html https://github.com/mceachen/exiftool https://github.com/minimagick/minimagick