imazen / imageflow

High-performance image manipulation for web servers. Includes imageflow_server, imageflow_tool, and libimageflow
https://docs.imageflow.io/
GNU Affero General Public License v3.0
4.14k stars 140 forks source link

Cropping an EXIF Orientated Image #553

Closed homesar closed 3 years ago

homesar commented 3 years ago

The cropped area for an image with EXIF orientation set is being incorrectly displayed. Using these source images: https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/orientation/portrait_1.jpg https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/orientation/portrait_6.jpg

I've cropped the image to show just the waterfall. The image with no orientation appears correctly, while the crop area on the left oriented image is off.

portrait_1.jpg?crop=134,155,279,439 image

portrait_6.jpg?crop=134,155,279,439 image

Alternatively, if it's possible to disable the automatic rotation, I'd be fine with rotating the source image and cropping at the same time.

lilith commented 3 years ago

This is fixed in v1.4.13-rc53.