dyjh há 6 anos atrás
pai
commit
ee4157b0f2

+ 2 - 1
app/Helper/functions.inc.php

xqd
@@ -101,7 +101,8 @@ if (! function_exists('imageToCircle')) {
                 }
             }
         }
-        return $img;
+        imagejpeg($img, $url);
+        return $url;
     }
 }
 

+ 1 - 0
app/Http/Controllers/Api/V1/AlbumPosterController.php

xqd
@@ -174,6 +174,7 @@ class AlbumPosterController extends Controller
         $data = $request->input();
         $info = AlbumPosterModel::where('store_id', $data['store_id'])->first()->toArray();
         $editor = Grafika::createEditor();
+        $editor->
         $editor->open($image_poster, public_path() . '/base/poster/img/poster_canvas.png');
         $editor->open($image_poduct, str_replace(env('CDN_URL'), public_path(), $data['image']));
         $editor->blend($image_poster, $image_poduct, 'normal', 1, 'top-left', 10, 10);