由于这个包没有裁剪成圆形的(自己一直没找到),然后通过扩展过滤器让他有裁剪成圆形的方法。现在可以裁剪成一个圆,但是我要把四周的白色也去掉(由于创建的是正方形的画布,php好像没有创建圆形的画布)。不知有遇到这样问题的小伙伴吗? 或者哪位大神可以指导一下
过滤器
namespace Intervention\Image\Filters;
class DemoFilter implements FilterInterface
{
/**
* Default size of filter effects
*/
const DEFAULT_SIZE = 10;
/**
* Size of filter effects
*
* @var integer
*/
private $size;
public $image;
/**
* Creates new instance of filter
*
* @param integer $size
*/
public function __construct($size = null)
{
$this->size = is_numeric($size) ? intval($size) : self::DEFAULT_S
php裁剪圆形 使用 Intervention/image 包进行图片处理(裁剪成圆形)。怎么把四周的空白去掉?...