Skip to content

Commit 4aafba6

Browse files
authored
Merge pull request #35689 from pulsejet/patch-heicrotate
preview: fix HEIC orientation
2 parents 87602df + 7004c1e commit 4aafba6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/private/Preview/HEIC.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ private function getResizedPreview($tmpPath, $maxX, $maxY) {
115115
// Layer 0 contains either the bitmap or a flat representation of all vector layers
116116
$bp->readImage($tmpPath . '[0]');
117117

118+
// Fix orientation from EXIF
119+
$bp->autoOrient();
120+
118121
$bp->setImageFormat('jpg');
119122

120123
$bp = $this->resize($bp, $maxX, $maxY);

0 commit comments

Comments
 (0)