preview: fix HEIC orientation

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
This commit is contained in:
Varun Patil 2022-12-08 15:06:58 -08:00 committed by backportbot-nextcloud[bot]
parent d2933358d6
commit 2617c090d7

View 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);