mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Fixes #578
This commit is contained in:
parent
580bfd0bbe
commit
a14532e715
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ class Image
|
|||
try {
|
||||
$img = Intervention::make($file)->orientate();
|
||||
if($thumbnail) {
|
||||
$img->crop($aspect['width'], $aspect['height']);
|
||||
$img->resize($aspect['width'], $aspect['height'], function ($constraint) {
|
||||
$constraint->aspectRatio();
|
||||
});
|
||||
} else {
|
||||
$metadata = $img->exif();
|
||||
$img->resize($aspect['width'], $aspect['height'], function ($constraint) {
|
||||
|
|
Loading…
Reference in a new issue