[OUTDATED] Vertical images are corrupted after cropping

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [x] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

We uploaded vertical image with width=“4912” height=“7360”
When we apply cropping it gets corrupted:
?width=1280&height=650&mode=crop
?width=1280&height=650&mode=cropupsize

At the same time resizing works well: ?width=1280&height=650&mode=max

Expected behavior

The image should change the aspect ratio without losing image quality.

Minimal reproduction of the problem

Upload high resolution image to Media library and try to resize it with crop or cropupsize mode.
?width=1280&height=650&mode=crop

Environment

  • [x] Self hosted with docker

Version: 4.2.0

This is already fixed in newer versions.

Thank you, Sebastian, for your quick reply, we will definitely upgrade to the latest version.
/Andrew

The fix is that image orientation will be fixed when uploaded. So you might need to upload it again.