php imagick mask method

不言
Release: 2023-03-23 21:50:02
Original
1497 people have browsed it

The content of this article is about the php imagick masking method, which has certain reference value. Now I share it with everyone. Friends in need can refer to it

php imagick蒙版做法
Copy after login
$image = new \Imagick(); $image->readImage(__DIR__ . '/mengban.png'); $watermark = new \Imagick(); $watermark->readImage(__DIR__ . '/testmengban.jpg'); /*$watermark->scaleImage(750, 1206, true); *///放到等比例按照宽度缩小图片 按照 $image->compositeImage($watermark, \imagick::COMPOSITE_ATOP, 0, 0); $image->writeImage(__DIR__ . '/mengbanresult.png');
Copy after login



View original text :http://newmiracle.cn/?p=2562

Related recommendations:

win10_php_imagick extension installation

How to use php_imagick to achieve retro effect_php example


The above is the detailed content of php imagick mask method. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!