Possible to append certain palette entries?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
adambrittonfrancis
Posts: 1
Joined: 2011-10-18T11:41:14-07:00
Authentication code: 8675308

Possible to append certain palette entries?

Post by adambrittonfrancis »

Hello,

I'm working on an app conversion with graphical updates. The avatar for the application uses a series of palatalized images and does palette swapping on the entries for the avatar's skin tone.

For this update, it's required that I change the colors of the avatars' costumes, but retain the ability to palette swap the avatar's skin color. There are over 1200 total images used for the avatar.

Although each image uses a different palette, the skin tones are always certain colors in palette entries 192-233.

I am able to procedurally update the colors of the avatar's costumes.

Is there an easy way to after updating all the costume colors to then append these certain palette entries into the files?

If I can just figure out how to get the skin tone palette entries back into the images without needing to manually update each image's palette, I think I can handle the rest of the updates.

Thanks in advance!
Adam F.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Possible to append certain palette entries?

Post by fmw42 »

I am not sure I follow all this, but how about just adding the palette data as an image comment in the meta data. See http://www.imagemagick.org/script/comma ... 13#comment
Post Reply