Skip to content

Commit

Permalink
Merge pull request #35729 from nextcloud/backport/35689/stable24
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Dec 11, 2022
2 parents 702ea27 + eea1f3c commit ff9c7e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/Preview/HEIC.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ private function getResizedPreview($tmpPath, $maxX, $maxY) {
// 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);
Expand Down

0 comments on commit ff9c7e5

Please sign in to comment.