Merge pull request #35689 from pulsejet/patch-heicrotate

preview: fix HEIC orientation
This commit is contained in:
John Molakvoæ 2022-12-11 11:18:34 +01:00 committed by GitHub
commit 4aafba68b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,6 +115,9 @@ class HEIC extends ProviderV2 {
// Layer 0 contains either the bitmap or a flat representation of all vector layers
$bp->readImage($tmpPath . '[0]');
// Fix orientation from EXIF
$bp->autoOrient();
$bp->setImageFormat('jpg');
$bp = $this->resize($bp, $maxX, $maxY);