-
-
Notifications
You must be signed in to change notification settings - Fork 716
Description
When I try to autorotate a jpg image with vips, the image itself is autorotated perfectly and the EXIF orientation tag properly reset to 1, but the thumbnail itself isn't autorotated. Because the EXIF orientation is reset, file viewers also no longer autorotate the thumbnail, and after autorotation the thumbnail shows up 90 degrees CCW.
Tested this both via my latest version of govips as well as CLI on macOS as well as Ubuntu groovy on libvips 8.10.2.
To Reproduce
Steps to reproduce the behavior:
- Use Image input1.jpg
vips copy 'input1.jpg[autorotate]' cli_output.jpg
- View image thumbnail or do
exiftool -b -ThumbnailImage cli_output.jpg > thumb.jpg
thumb.jpg attached as sample.
P.S. I love libvips, thanks for the great work. I did a simple backporting of libvips 8.10.2 from Groovy to the two latest LTS Ubuntu versions 20.04 focal as well as 18.04 bionic into my PPA, might be useful for other people as well: https://launchpad.net/~tonimelisma/+archive/ubuntu/ppa