Page 1 of 1
How to do this command with php api of imagemagick
Posted: 2019-01-15T02:41:41-07:00
by tczf1128
Code: Select all
convert input.png \
-gravity Center \
\( -size 200x200 \
xc:Black \
-fill White \
-draw 'circle 100 100 100 1' \
-alpha Copy \
\) -compose CopyOpacity -composite \
-trim output.png
Re: How to do this command with php api of imagemagick
Posted: 2019-01-15T15:25:12-07:00
by fmw42
See
http://us3.php.net/manual/en/book.imagick.php. Try to match up the commands. Then try some code. If you cannot get it to work, then post your code and others who know Imagick might be able to point out your errors.
______________________
Please, always provide your IM version and platform when asking questions, since syntax may differ.
Also provide your exact command line and your images, if possible.
See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at
viewtopic.php?f=1&t=9620
If using Imagemagick 7, then see
http://imagemagick.org/script/porting.php#cli
For novices, see
viewtopic.php?f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown
https://imagemagick.org/script/porting.php#cli