I am trying to port 2 graphics magick commands to the Gmagick php library (mind: not Imagick). The commands are:
gm convert -matte -flatten image.png output.png
gm convert -channel Matte -negate image.png output.png
Basically I am trying to extract the alpha channel from a transparent png into its own file and the image without alpha into another file from a php script.
I have the Imagick equivalents already but I am interested in Gmagick.
Any idea, anyone?