1、composer require intervention/image
2、// 将下面代码添加到 providers 数组中'providers' => [
// ...
Intervention\Image\ImageServiceProvider::class,
// ...
],
// 将下面代码添加到 aliases 数组中'aliases' => [
// ...
'Image' => Intervention\Image\Facades\Image::class,
// ...
],
3、php artisan vendor:publish
参考文档:https://blog.csdn.net/beyond__devil/article/details/62230610
http://www.gaitubao.com/shuiyin/
http://image.intervention.io/api/text
Bootstrap Colorpicker是Bootstrap 4的模块化颜色选择器插件。
下载php扩展
1、http://www.peewit.fr/imagick/
php.ini添加扩展
2、extension=php_imagick.dll
3、cmd:php -f hello.php查看php报错信息
阿里云图片水印:
https://helpcdn.aliyun.com/document_detail/44957.html
OSS图片加水印,原图还会暴露
以文档中给出的图片为例,水印图片路径:http://image-demo.img-cn-hangzhou.aliyuncs.com/example.jpg@400w|watermark=1&object=cGFuZGEucG5nQDMwUA&t=90&p=9&x=10&y=10 ,但是在去除水印参数后(http://image-demo.img-cn-hangzhou.aliyuncs.com/example.jpg),还会暴露原图