Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructured the Exif orientation handling.
* Moved logic into a resize() util function that wraps PIL.Image.resize(). * Added and utilized a couple utility functions for getting image dimensions, taking orientation into account.
- Loading branch information
1 parent
920510c
commit 9445ece
Showing
3 changed files
with
114 additions
and
22 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
Probably should do
self.calculate((image_width, image_height))
, eh? No sense in running the function twice.