- convert -append *.bmp -colors 256 map.png
for image in *.bmp do
base=`echo $image | sed "s/.bmp//"`
convert $image -map map.png -colors 256 -transparent "#ff00ff" $base.png
done
to 255 instead of 256.
pinkfloydhomer wrote: This doesn't seem to work. First of all, I think you forgot a ";" after *.bmp. Also, the resulting .pngs are 32-bit color depth, not 8-bit. IrfanView reports that there is a palette anyway (I don't understand), but 255,0,255 is _not_ on index 0 in the palette.
Can you (or anybody) come up with another way to solve my problem?
/David