/remap

A tool that allows you to remap the colors of an image to a limited set of colors specified by your palette.

Primary LanguageC

remap

Description

remap allows you to remap the colors of an image to a limited set of colors specified by your palette using libimagequant. Supported palette formats are Act, Microsoft Pal, JASC, GIMP, Paint .NET and png.

Installation

git clone https://github.com/bernhardfritz/remap.git
cd remap
mkdir build
cd build
cmake ..
make
make install

Usage

remap [options] <inputFilename> <paletteFilename> <outputFilename>

Options

option alias description
-r min-max --range min-max Use a range of colors from the palette
-b 4|8 --bits 4|8 Bit depth of png output (default 8)
-s n|auto --slot n|auto 16 color palette slot
-m --mask Generate a mask file

Example

remap dungeon.png endesga-32-1x.png output.png

dungeon.png

endesga-32-1x.png

output.png

References