EXIF-"rotated" jpeg aren't resized properly
Swiss army knife of image processing
Brought to you by:
bfriesen
if a jpeg photo has EXIF info saying that it's actually rotated by 90 degrees
then -size and -resize options do not work right: x dimension looks at physical x (which is y) and visa versa.
Example: a jpeg 200x100 with EXIF info saying "rotate 90 degrees clockwise" represents 100x200 image. If I -resize 50x then it makes 25x50, but it should produce 50x100.
On Sun, 7 Aug 2016, Ildar Mulyukov wrote:
Does adding the option '-auto-orient' prior to the -resize request
solve the problem?
Please note that -size does not resize images
Bob
A fix for sometimes missing EXIF orientation has been applied as part of bug 400. Otherwise it is recommended to use -auto-orient before the resize request. GraphicsMagick expects that requests apply to the image pixels in their current raster form and it does not translate user requests to based on the orientation tag. We do not intend to change this.
Hi, Bob,
Sorry for the delay.
Unfortunatelly '-auto-orient' doesn't work for me:
still ignores EXIF info which is for one of my photos:
GraphicsMagick 1.3.18
Last edit: Ildar Mulyukov 2016-10-09
Sorry, not true. Now the resize processes as expected.
But I found that:
On Sun, 9 Oct 2016, Ildar Mulyukov wrote:
You are reading documentation for the -extent option, which does use
-size.
The -size option needs to be provided for formats where the size is
not already known.
The -resize (or -geometry) options resize the raster image.
The version of GraphicsMagick you are using is very old. Regardless,
GraphicsMagick's support for EXIF is still not very good yet in that
it does not support modifying the EXIF to take changes into account.
Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Related
Bugs:
#395