brewtool

Palette Tool — by Andrew G. Crowell

For extracting 15-bit RGB palettes from images. Unique rows within an image, of up to 4 colors, become their own palette.

see also: (source code)