mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Fix image resizing logic
This commit is contained in:
parent
9ca59f73b0
commit
e94d9534b1
1 changed files with 2 additions and 2 deletions
|
@ -106,8 +106,8 @@ class Image {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$img = Intervention::make($file);
|
$img = Intervention::make($file);
|
||||||
$img->fit($aspect['width'], $aspect['height'], function ($constraint) {
|
$img->resize($aspect['width'], $aspect['height'], function ($constraint) {
|
||||||
$constraint->upsize();
|
$constraint->aspectRatio();
|
||||||
});
|
});
|
||||||
$converted = $this->convertPngToJpeg($path, $thumbnail, $img->extension);
|
$converted = $this->convertPngToJpeg($path, $thumbnail, $img->extension);
|
||||||
$newPath = storage_path('app/'.$converted['path']);
|
$newPath = storage_path('app/'.$converted['path']);
|
||||||
|
|
Loading…
Reference in a new issue