mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 15:45:41 +08:00
Merge pull request #1113 from oanhnn/patch-1
Correct image orientation according to Exif data
This commit is contained in:
commit
4b7509b440
@ -101,7 +101,7 @@ class UploadAvatarHandler
|
|||||||
$manager = new ImageManager;
|
$manager = new ImageManager;
|
||||||
|
|
||||||
// Explicitly tell Intervention to encode the image as JSON (instead of having to guess from the extension)
|
// Explicitly tell Intervention to encode the image as JSON (instead of having to guess from the extension)
|
||||||
$encodedImage = $manager->make($tmpFile)->fit(100, 100)->encode('jpg', 100);
|
$encodedImage = $manager->make($tmpFile)->orientate()->fit(100, 100)->encode('jpg', 100);
|
||||||
file_put_contents($tmpFile, $encodedImage);
|
file_put_contents($tmpFile, $encodedImage);
|
||||||
|
|
||||||
$this->events->fire(
|
$this->events->fire(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user