IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
donjose
Posts: 1 Joined: 2014-10-21T13:48:41-07:00
Authentication code: 6789
Post
by donjose » 2014-10-21T13:51:28-07:00
To fill png with color:
Code: Select all
$im = new Imagick('image.png');
$im->setImageAlphaChannel(Imagick::ALPHACHANNEL_EXTRACT);
$im->setImageBackgroundColor('red');
$im->setImageAlphaChannel(Imagick::ALPHACHANNEL_SHAPE);
How can i fill png shape with gradient?
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2014-10-21T16:19:08-07:00
try
colorizeImage()
fmw42
Posts: 25562 Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Post
by fmw42 » 2014-10-21T16:19:36-07:00