mirror of
https://github.com/flarum/framework.git
synced 2025-05-04 02:24:03 +08:00
Add a comment
This commit is contained in:
parent
006ea02227
commit
251862222c
@ -97,8 +97,8 @@ 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)
|
||||||
$encodedImage = $manager->make($tmpFile)->fit(100, 100)->encode('jpg', 100);
|
$encodedImage = $manager->make($tmpFile)->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