Anthony's page discussion at
http://www.imagemagick.org/Usage/quantize/#color_trans seems to be written at IM 6.2.6 and IM 6.3. I do not have the ability go back that far. I went back to IM 6.7.6.10 and it did not re-create Anthony's example.
I do not think it is a big issue, since I have pointed out a work-around.
My solution was to copy the alpha channel, then process the image with alpha off, then copy the alpha channel back.
Code: Select all
convert alpha_gradient.png \
\( -clone 0 -alpha extract \) \
\( -clone 0 -alpha off +dither -colors 15 \) \
-delete 0 +swap -alpha off -compose copy_opacity -composite \
alpha_colors_15qt.png
But it would be nicer if -colors respected -channel a, so that I could do
Code: Select all
convert alpha_gradient.png -alpha off +dither -colors 15 -alpha on alpha_colors_15qt.png
which does not currently work.