$img = "https://xxxxx.com/1234.png";
//普通save
$file = Image::make($img)->save('public/bar.png');
//等比例剪裁
$file = Image::make($img)->fit(300, 200, function ($constraint) {
$constraint->upsize();
})->save($path . 'filename.jpg', 80, 'jpg');
$img = "https://xxxxx.com/1234.png";
//普通save
$file = Image::make($img)->save('public/bar.png');
//等比例剪裁
$file = Image::make($img)->fit(300, 200, function ($constraint) {
$constraint->upsize();
})->save($path . 'filename.jpg', 80, 'jpg');