]> source.dussan.org Git - nextcloud-server.git/commitdiff
preview: fix HEIC orientation 35689/head
authorVarun Patil <varunpatil@ucla.edu>
Thu, 8 Dec 2022 23:06:58 +0000 (15:06 -0800)
committerVarun Patil <varunpatil@ucla.edu>
Fri, 9 Dec 2022 07:14:13 +0000 (23:14 -0800)
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
lib/private/Preview/HEIC.php

index ec200defce86fdbd43e0f4a3ce9f3a95c6470d6f..71df98f9ac66e3273bd92df3c0618b5bd4d8ed45 100644 (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);