Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use rotation information in EXIF #13

Closed
GoogleCodeExporter opened this issue Jul 25, 2015 · 10 comments
Closed

Use rotation information in EXIF #13

GoogleCodeExporter opened this issue Jul 25, 2015 · 10 comments

Comments

@GoogleCodeExporter
Copy link

Problem
-------
* Currently, Thumbnailator does not recognize information in JPEG EXIFs, which 
can lead to photographs taken in portrait mode to be resized in landscape mode.


Solution
--------
* Read the EXIF metadata present in JPEG files
* If the EXIF metadata indicates that the image is in portrait mode, then 
perform a rotation ahead of the thumbnail generation.


Complications
-------------
* The behavior for handling portrait-oriented JPEGs in Thumbnailator will 
change after the introduction of this feature.

Original issue reported on code.google.com by coobird...@gmail.com on 19 Jun 2011 at 2:35

@GoogleCodeExporter
Copy link
Author

This is very important for images sent from mobile devices.  For example, the 
iphone vertical (standard) position is rotated by 90 degrees.

Original comment by chrismic...@gmail.com on 21 Feb 2012 at 4:12

@GoogleCodeExporter
Copy link
Author

Addressing Issue 27 is a pre-requisite for this issue.

Original comment by coobird...@gmail.com on 8 Oct 2012 at 5:36

  • Changed state: Accepted
  • Added labels: Priority-Medium
  • Removed labels: Priority-Low

@GoogleCodeExporter
Copy link
Author

Work to automatically rotate the resulting thumbnail using information from the 
EXIF metadata has commenced.

Original comment by coobird...@gmail.com on 5 Nov 2012 at 3:37

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Original comment by coobird...@gmail.com on 24 Nov 2012 at 6:24

  • Added labels: Milestone-0.4.x

@GoogleCodeExporter
Copy link
Author

Original comment by coobird...@gmail.com on 27 Dec 2012 at 4:05

  • Added labels: Milestone-0.4.3
  • Removed labels: Milestone-0.4.x

@GoogleCodeExporter
Copy link
Author

Released as part of Thumbnailator 0.4.3.

Original comment by coobird...@gmail.com on 3 Jan 2013 at 7:01

  • Changed state: Done

@GoogleCodeExporter
Copy link
Author

Unfortunately, a picture taken in portrait with a Samsung Galaxy S3 (GT-I9300) 
that has an Orientation tag of "Rotate 90 CW" does not get rotated properly, 
but instead appears in landscape after thumbnailing. I might take a closer look 
in the source if I only have the time.

Original comment by mike.arv...@gmail.com on 4 Apr 2013 at 1:17

@GoogleCodeExporter
Copy link
Author

Sorry, didn't realize I had to use a specific type of an input source to get 
the desired effect. Seems to work now. Great little library. :)

Original comment by mike.arv...@gmail.com on 4 Apr 2013 at 1:54

@GoogleCodeExporter
Copy link
Author

@mike: Can you post what source did you have initially and what have you 
changed it to be? I have the same issue with jpg images.

Original comment by denis.k1...@gmail.com on 10 Jun 2013 at 2:36

@GoogleCodeExporter
Copy link
Author

@Denis, looking at the source I realized it works properly if you give it the 
image using a specific type. I don't have the source available right now, but 
if you give call Thumbnails.of() with a java.io.File, it will work out of the 
box with proper orientation handling.

Original comment by mike.arv...@gmail.com on 10 Jun 2013 at 3:31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant