Daniel Supernault пре 7 година
родитељ
комит
e94d9534b1
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      app/Util/Media/Image.php

+ 2 - 2
app/Util/Media/Image.php

@@ -106,8 +106,8 @@ class Image {
 
     try {
       $img = Intervention::make($file);
-      $img->fit($aspect['width'], $aspect['height'], function ($constraint) {
-        $constraint->upsize();
+      $img->resize($aspect['width'], $aspect['height'], function ($constraint) {
+        $constraint->aspectRatio();
       });
       $converted = $this->convertPngToJpeg($path, $thumbnail, $img->extension);
       $newPath = storage_path('app/'.$converted['path']);