Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
rotate jpeg images by exif orientation #1110
I think about the best way to rotate images by exif orientation by default. Doing so is easy with a change of one line, but it has some side effects.
Working test branch: raffaelj@4ec3e94
This issue was addressed before in #339 (2015).
SimpleImage already has a function
For images > 4MB I had to increase the
The creation time for a thumbnail increases. I simply counted the seconds by hand (no real test, I know) and a 6.8MB file without rotation took around 2 seconds. A 4MB file with rotation took 3-4 seconds. That's OK for one file, but not for many images on run time/via api requests.