图片处理 PictureLibrary
图片追加水印、文字以及将长图拆分为1:1多图
Abnermouke\Supports\Library\PictureLibrary::make($source)
$main_img_path = 'path to image';
$water_img_path = 'path to water image';
$width = 100; //水印图片宽度
$height = 100; //水印图片高度
$x = 10; //水印图片X轴坐标
$y = 10; //水印图片Y轴坐标
$position = 'top-left'; //水印图片对其位置(默认:左上)
$save_img_path = 'path to save image';
Abnermouke\Supports\Library\PictureLibrary::make($main_img_path)
->draw($water_img_path, $width, $height, $x, $y, $position)
->save($save_img_path);Last updated