coolshou / thumbnailator

Automatically exported from code.google.com/p/thumbnailator
Other
0 stars 0 forks source link

Use rotation information in EXIF #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
Addressing Issue 27 is a pre-requisite for this issue.

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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Released as part of Thumbnailator 0.4.3.

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

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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 commented 9 years ago
@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 commented 9 years ago
@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