diff --git a/lib/private/Preview/HEIC.php b/lib/private/Preview/HEIC.php index ec200defce86f..71df98f9ac66e 100644 --- a/lib/private/Preview/HEIC.php +++ b/lib/private/Preview/HEIC.php @@ -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);