-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use exiffix library to fix image orientation
If you upload an unedited image from an iPhone, the EXIF data indicates how it should be oriented. Oddmu used to resize images strip the EXIF data, resulting in resized images that were not oriented correctly. If the EXIF data is stripped, the image has to be rotated. In order to do this, the exiffix single-function library is used to work around "image/jpeg: correct for EXIF orientation? #4341", opened in 2012. See golang/go#4341 for more information and a link to https://github.com/edwvee/exiffix.
- Loading branch information
Showing
3 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters