palette tools?
Moderator: BigEvilCorporation
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
palette tools?
Are there any tools available that would let me reorder the colors of an image's palette without affecting the image itself?
Contrived simplified example: changing the palette of an image from [blue][red][green][yellow] to [yellow][green][red][blue] and still keep the image looking the same.
For extra difficulty, I have two images that have very similar colors (the Goplanes plane and the giant airship) but their palettes are in a different order. Are there any tools available that can help unifying them easier than fixing it by hand?
Thanks!
DJCC
Contrived simplified example: changing the palette of an image from [blue][red][green][yellow] to [yellow][green][red][blue] and still keep the image looking the same.
For extra difficulty, I have two images that have very similar colors (the Goplanes plane and the giant airship) but their palettes are in a different order. Are there any tools available that can help unifying them easier than fixing it by hand?
Thanks!
DJCC
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
I asked on the nesdev forum as well http://forums.nesdev.com/viewtopic.php? ... 68#p104768
I went with Kasumi's suggestion: I open both images and then copy/paste the image I want the palette to change into the image that has the palette I want. Graphics Gale automatically converts the pixels to use the correct pixel. Or close enough.
I went with Kasumi's suggestion: I open both images and then copy/paste the image I want the palette to change into the image that has the palette I want. Graphics Gale automatically converts the pixels to use the correct pixel. Or close enough.
I have found you can do this in jasc paint shop pro 9. As they do not sell it anymore you can get it from thepiratebay.se First save the palette by doing image->palette->save palette Then download http://www.alister.eu/palsuite/ it is free download latest version not old ones offered when you click on download Edit the palette saved then go back to jsacs and goto image->palette->load palette and you should see the the palette is changed selected nearest color and then the new palette is loaded but the image still looks the same assuming that you only reordered colors not change values. By the way I used both programs with wine just fine.
-
- Very interested
- Posts: 237
- Joined: Fri Apr 17, 2009 7:35 pm
- Location: USA
mtpaint http://mtpaint.sourceforge.net/
IIRC all you need to do is open the image and in the palette display, hold down Alt and click and drag to rearrange with the mouse.
edit: oops, just checked. It's the Shift key, but it works as described.
IIRC all you need to do is open the image and in the palette display, hold down Alt and click and drag to rearrange with the mouse.
edit: oops, just checked. It's the Shift key, but it works as described.
my album - last thursday died last week
If you only care that the palettes are uniform, and not the particular order of the palettes, then you should be able to use Imagemagick for this.
First, I have an image that only contains the palette colors I want called palette0.bmp.
Next I can apply that palette to any image with the -remap command like so:
Though I can't control the exact ordering that Imagemagick applies the colors, the order of the colors appears consistent when using the same palette. The good thing about this approach is that it is very easily scriptable (even in a Makefile, perhaps.)
First, I have an image that only contains the palette colors I want called palette0.bmp.
Next I can apply that palette to any image with the -remap command like so:
Code: Select all
$ convert animage.bmp -remap palette0.bmp BMP3:animage.bmp