tools to find common palette of multi images

Talk about development tools here

Moderator: BigEvilCorporation

Post Reply
KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

tools to find common palette of multi images

Post by KanedaFr » Mon Jun 06, 2011 9:32 pm

Some years ago, I used Debabelizer to do this.

Perhaps, there is now a better tool to
- find a common palette of X images (within a defined number of colors)
- reorder palette (ex: exchange color 2 with 4)

if you use/know any (freeware or not), let me know ;)

I already know about Palette Maker (http://www.compuphase.com/software_palettemaker.htm) but it only supports 256colors (not 16 or 15 or 7)


thanks

mic_
Very interested
Posts: 265
Joined: Tue Aug 12, 2008 12:26 pm
Location: Sweden
Contact:

Post by mic_ » Wed Jun 08, 2011 11:47 am

find a common palette of X images (within a defined number of colors)
Combine all images into one big image, run a quantizer on it, split the resulting image into the individual sub-images.

KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Post by KanedaFr » Wed Jun 08, 2011 2:56 pm

;)
it's what I did tomorrow with imagemagick
it works well, but you can't play easily with colors (changing value, reorder, etc...)
so imagemagick does only half of what I'm looking for ...

I now need to try Grafx2 with its palette handling....

Pascal
Very interested
Posts: 200
Joined: Wed Nov 29, 2006 11:29 am
Location: Belgium
Contact:

Post by Pascal » Thu Jun 09, 2011 12:13 pm

maybe cosmigo pro-motion

KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Post by KanedaFr » Thu Jun 09, 2011 5:39 pm

Pro Motion :
+ color quantization works perfect
+ easy way to move color one by one
- need to upload all the images in a multiframe (so every image is resized to biggest one)
- buggy as hell (I was unable to edit more than 5 pixels on screen and to delete even one)

so... imagick for the quantization and promotion for palette edit could be a solution....

thanks for the hint

Chilly Willy
Very interested
Posts: 2984
Joined: Fri Aug 17, 2007 9:33 pm

Post by Chilly Willy » Thu Jun 09, 2011 10:40 pm

I've used GIMP to set the color depth, but I don't know if it can change/move colors once in paletted mode.

powerofrecall
Very interested
Posts: 237
Joined: Fri Apr 17, 2009 7:35 pm
Location: USA

Post by powerofrecall » Fri Jun 10, 2011 11:22 pm

http://mtpaint.sourceforge.net/ mtpaint can rearrange and modify palette colors individually. it also dithers and reduces colors fairly well too.

cdoty
Very interested
Posts: 117
Joined: Wed Nov 29, 2006 2:54 pm
Location: Houston, TX
Contact:

Post by cdoty » Fri Jun 17, 2011 8:19 pm

Here's something that sounds like it could be useful:

https://github.com/MatthewCallis/snesimg

It's for the SNES, but converting it to the Genesis probably wouldn't be too hard.

KanedaFr
Administrateur
Posts: 1139
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Post by KanedaFr » Sat Jun 18, 2011 4:35 pm

thanks but my main concern is to find a common palette for n images.
imagemagick makes it using this

Code: Select all

REM with every image in in\ repository
REM result will be written in out\ repository

REM make a single image with green background
montage -background #00FF00 -geometry +0+0 in/*.* out/common.png

REM convert to 16 colors
convert -quantize transparent -colors 16 +matte out/common.png out/common_16.bmp

REM create a bitmap with the pal only (a 16x1 bmp)
convert out/common_16.bmp -unique-colors out/common_map.bmp

REM extract pal to text
convert out/common_map.bmp -unique-colors -depth 4 txt:- >out/common_map.txt

REM split image in 72x72 bitmap (replace with your value)
convert out/common_16.bmp -crop 72x72 +repage out/tiles%%02d.bmp
the good news is imagemagick is multiOS & open source ;)

ammianus
Very interested
Posts: 124
Joined: Sun Jan 29, 2012 2:10 pm
Location: North America
Contact:

Post by ammianus » Sun Sep 16, 2012 10:31 pm

I know I am late to the party here, but just want to point an alternative, I had a thread mentioning a mod to _mic's sixpack tool that will allow you to use a common palette file when processing a series of images.

Post Reply