lizhichao/one-img

图片边缘检测

0.1 2021-06-11 06:58 UTC

This package is auto-updated.

Last update: 2024-10-15 16:52:20 UTC


README

安装

composer require lizhichao/one-img
$img_path = '1.jpg';
$img = new \OneImg\Border();
$img->setImg($img_path)
    ->scale(300, 300)
    ->outline()
    ->save(); //输出到浏览器

效果