Skip to content

Commit

Permalink
preview: fix HEIC orientation
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
  • Loading branch information
pulsejet authored and backportbot-nextcloud[bot] committed Dec 11, 2022
1 parent 702ea27 commit eea1f3c
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 eea1f3c

Please sign in to comment.