php imagick paint all non transparent pixels one color

233 views Asked by At

I need to convert all non transparent pixels to one color (e.g. black).

I can only use the methods exposed by the php imagick extension http://php.net/manual/en/class.imagick.php

as exec() is blocked on the server.

what would be the quickest route to achieve this?

1

There are 1 answers

0
Barry Hamilton On BEST ANSWER

In the end I created a black pseudo image and copied the opacity from the original image to the new pseudo image