mirror of
https://github.com/flarum/core.git
synced 2025-07-25 02:31:17 +02:00
Add a comment
This commit is contained in:
@@ -97,8 +97,8 @@ class UploadAvatarHandler
|
||||
|
||||
$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);
|
||||
|
||||
file_put_contents($tmpFile, $encodedImage);
|
||||
|
||||
$this->events->fire(
|
||||
|
Reference in New Issue
Block a user