📜  图片 laravel 8 上的图片水印 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:37.405000             🧑  作者: Mango

代码示例1
//composer  require intervention/image 
$img = Image::make(public_path('image.jpg')); //your image I assume you have in public directory
$img->insert(public_path('watermark.jpg'), 'top-right', 10, 10); //insert watermark in (also from public_directory)
$img->save(public_path('image.jpg')); //save created image (will override old image)