Hi all,
I'm looking for a way of converting an image so that all non-transparent pixels (those that have alpha != 1) into black and transparent pixels untouched (or converted to white). The closest I got was with the below imagemagick command:
convert <img> -colorspace Gray <out>
However this still gives me some gray colors instead of a complete black. I have tried all colorspace options and none does the job.
Any idea how I could achieve this with imagemagick or with similar tools (or with a PHP library if it exists)
Thanks