Using version 1.4 downloaded from the GM snapshots on 6/17/2014 using the GM commandline in Windows. Attempts with 1.3.18 actually crashed the tool. I am running this command:
gm convert "%~dpnx1" -dither -colors 254 -treedepth 2 -compose Copy -matte
-type PaletteMatte "%~dpn1_8bit.png"
The input PNG is a 32bit PNG with an 8-bit alpha channel and the output needs to be an 8-bit paletized PNG file with the source's transparency. When the output of this command is generated, the alpha is dropped and space covered is converted to all white (255,255,255). No alpha channel exists at that point. I have attempted several iterations of this, including doing a composite of the matte which only produced a 32bit output:
gm composite "%~dpn1_8bit.tif" -compose Copy "%~dpn1_matte.tif" -matte
-type PaletteMatte "%~dpn1_8bMatted.png"
So far, even XNView fails to do this. Any help would be appreciated. Thank you!!