| xqd
@@ -174,7 +174,6 @@ 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);
|
| xqd
@@ -222,6 +221,10 @@ class AlbumPosterController extends Controller
|
|
|
$editor->resizeExactWidth($image_qrcode, 140);
|
|
|
$editor->resizeExactHeight($image_qrcode, 140);
|
|
|
$editor->blend($image_poster, $image_qrcode, 'normal', 1, 'top-left', 310, 500);
|
|
|
+ $editor->open($image_avatar, public_path() . '/base/poster/avatar/' . $data['store_id'] . "/$userAuth->id.jpg");
|
|
|
+ $editor->resizeExactWidth($image_avatar, 64);
|
|
|
+ $editor->resizeExactHeight($image_avatar, 64);
|
|
|
+ $editor->blend($image_poster, $image_avatar, 'normal', 1, 'top-left', 348, 548);
|
|
|
$editor->text($image_poster, $name, 16, 380 - (22 * (mb_strlen($name) / 2)), 645, new Color("#666666"), $font, 0);
|
|
|
$editor->save($image_poster, public_path() . '/download/' . $userAuth->id . '.png');
|
|
|
$real_url = env('CDN_URL') . '/download/' . $userAuth->id . '.png';
|