]> source.dussan.org Git - nextcloud-server.git/commitdiff
preview: fix HEIC orientation 35729/head
authorVarun Patil <varunpatil@ucla.edu>
Thu, 8 Dec 2022 23:06:58 +0000 (15:06 -0800)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Sun, 11 Dec 2022 11:19:57 +0000 (11:19 +0000)
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
lib/private/Preview/HEIC.php

index 7ce6b93ba3b1c5cc5fa2ca4c7d8eb4901bdf80df..d29e0d29dafedba7ee1aea081f060019de724e37 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);