I have been trying to convert a small PNG image with a transparent background to a GIF image with a transparent background. I used this command structure:
convert -background none img.png img.gif
The result is a GIF image with a black background. However, if I reduce the color palette using:
convert -colors 4 -background none img.png img2.gif
I get the correct result, a GIF image with a transparent background.
Am I doing something wrong? Why would ImageMagick fill the background? And also, are there automatic settings to save the GIF with the indexed color palette? The quantization settings documentation specifies many options. Is there a shortcut or predefined group of settings?
Original PNG

GIF with black background

Correct result
