Skip to content

Utility program to swap specified target transparent pixel to be at first position of colormap of input gif image

License

Notifications You must be signed in to change notification settings

abzico/tcolorswap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcolorswap

Utility program to swap specified target transparent pixel to be at first position of colormap of input gif image

Intention

This is meant to be used with game engine that requires first position of color map attached with sprite image to be transparent color, so engine itself can render it properly.

As from research, gimp or other photo editing tool can do it but it requires manually (no batch processing), gimp scripting has no feature or API to access color map (instead although it has somewhat seems to do so but it access histogram colormap of image), gitclrmp utility tool is almost the one we want but we need custom solution.

Usage

Command line usage

tcolorswap red-value green-value blue-value input-file output-file

  • red-value - red color component value
  • green-value - green color component value
  • blue-value - blue color component value
  • input-file - input gif file to modify its color map
  • output-file - output gif file to output the result

Build Instruction

  • ./autogen.sh
  • ./configure
  • make -j4
  • sudo make install

Now you can execute the command, see Usage section for more information.

LICENSE

MIT, Angry Baozi https://abzi.co

About

Utility program to swap specified target transparent pixel to be at first position of colormap of input gif image

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published