
I have a bunch of images I'm appending in a sprite, and I want the final output to be a 256-color gif – imagemagick keeps reducing colors to 128...
what option am I missing?
Code: Select all
convert -background white \
\( \( clear.gif -resize 10x185! \) \( bg-header.gif -resize 10x169! \) -layers flatten \) \
\( bg-menu1.png -resize 10x46! \) \
\( bg-menu1-hover.png -resize 10x46! \) \
\( \( \( bg-header.gif -resize 10x169! \) \( bg-menu1-start.png bg-menu1-end.png +append \) -layers flatten \) -crop 10x46+0+0! \) \
\( bg-menu2.png -resize 10x26! \) \
\( \( \( bg-header.gif -resize 10x169! \) \( clear.gif -resize 10x46! \( bg-menu2-start.png bg-menu2-end.png +append \) -append \) -layers flatten \) -crop 10x26+0+46! \) \
\( bg-tab.png -resize 10x30! \) \
\( bg-tab-start.png bg-tab-end.png +append \) \
\( bg-copyright.gif -resize 10x32! \) \
-append -colors 256 ../sito/img/bgs.gif
Code: Select all
$ identify sito/img/bgs.gif
sito/img/bgs.gif GIF 10x467 10x467+0+0 8-bit PseudoClass 128c 2.5KB 0.000u 0:00.000