It is working for me (IM-6.6.7-1, Q8 and Q16). The resulting images are indeed PseudoClass (paletted PNG, color-type 3), but they have a tRNS chunk to convey the transparency.
If you are using a viewer that cannot handle this type of image, then use
Code: Select all
convert image1.png PNG32:image1-copy.png
to force IM to write an RGBA PNG.
Pngcrush -n -v reports:
- Found tRNS chunk in input file.
png_set_tRNS, num_trans=45
Palette:
I R G B ( color ) A
0 255 255 255 (#ffffff) 0
1 33 160 210 (#21a0d2) 14
2 33 160 210 (#21a0d2) 83
3 33 160 210 (#21a0d2) 144
4 33 160 210 (#21a0d2) 194
5 33 160 210 (#21a0d2) 232
6 33 160 210 (#21a0d2) 253
7 141 210 33 (#8dd221) 253
8 141 210 33 (#8dd221) 232
9 141 210 33 (#8dd221) 194
10 141 210 33 (#8dd221) 144
11 141 210 33 (#8dd221) 83
12 141 210 33 (#8dd221) 14
13 33 160 210 (#21a0d2) 94
14 33 160 210 (#21a0d2) 185
15 141 210 33 (#8dd221) 185
16 141 210 33 (#8dd221) 94
17 33 160 210 (#21a0d2) 29
18 33 160 210 (#21a0d2) 142
19 141 210 33 (#8dd221) 142
20 141 210 33 (#8dd221) 29
21 33 160 210 (#21a0d2) 158
22 141 210 33 (#8dd221) 158
23 210 54 33 (#d23621) 253
24 210 146 33 (#d29221) 253
25 210 54 33 (#d23621) 232
26 210 146 33 (#d29221) 232
27 210 54 33 (#d23621) 194
28 210 146 33 (#d29221) 194
29 210 54 33 (#d23621) 144
30 210 146 33 (#d29221) 144
31 210 54 33 (#d23621) 83
32 210 146 33 (#d29221) 83
33 210 54 33 (#d23621) 14
34 210 54 33 (#d23621) 185
35 210 146 33 (#d29221) 185
36 210 146 33 (#d29221) 14
37 210 54 33 (#d23621) 94
38 210 146 33 (#d29221) 94
39 210 54 33 (#d23621) 142
40 210 146 33 (#d29221) 142
41 210 54 33 (#d23621) 29
42 210 54 33 (#d23621) 158
43 210 146 33 (#d29221) 158
44 210 146 33 (#d29221) 29
45 33 160 210 (#21a0d2) 255
46 141 210 33 (#8dd221) 255
47 210 54 33 (#d23621) 255
48 210 146 33 (#d29221) 255
Note that all but the last four colors in the palette have some degree of transparency.
If you look at the result of "identify -verbose image1.png | grep signature'
and repeat for the output image you will find that the signatures are the same.