slinga
Established Member
I'm trying to improve my sprite workflow. I need to the following:
1) Combine all of my sprites
2) Create a single optimized palette of 255 colors
3) Export that palette
4) Apply that palette to each of my sprites
So far I have this (using ImageMagick from the command line)
The append appends all of my sprites into a single file 24-bit color TGA. The next line creates an indexed (palette) TGA but instead of using 255 colors it uses ~16 or so.
I then need a way to extract the palette from ALL2.TGA and apply it to each of my sprites. Any advice on how to do this? Thanks in advance.
1) Combine all of my sprites
2) Create a single optimized palette of 255 colors
3) Export that palette
4) Apply that palette to each of my sprites
So far I have this (using ImageMagick from the command line)
Code:
rm ALL.TGA
convert -append *.TGA ALL.TGA
convert ALL.TGA -depth 8 -colors 255 ALL2.TGA
The append appends all of my sprites into a single file 24-bit color TGA. The next line creates an indexed (palette) TGA but instead of using 255 colors it uses ~16 or so.
I then need a way to extract the palette from ALL2.TGA and apply it to each of my sprites. Any advice on how to do this? Thanks in advance.