1
有沒有辦法使用干涉圖像填充透明的黑色區域?使用干預圖像裁剪小文件填充干涉圖像
$data = file_get_contents("php://input");
$img = Image::make($data);
$path = sprintf("%/data/%s/img",public_path(),Auth::user()->account_id);
@mkdir($path,0775,true);
$img->crop(350, 150)->encode('png', 90)->save(sprintf("%s/logo.png",$path));