mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
preview: fix HEIC orientation
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
This commit is contained in:
parent
d2933358d6
commit
2617c090d7
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue