Skip to content

@mateoconlechuga mateoconlechuga released this Oct 31, 2018 · 3 commits to master since this release

About

This is the foremost tool in CE image conversion. Simply hand it a bunch of images, and it will determine the best 8-bit palette and create either a C, assembly, or ICE include file for use in your programs.

For usage, please see the relevant readme

Once you've downloaded the binary, you probably want to discard the OS prefix and move it into a directory of your $PATH, so you can directly call convpng.

Assets 4

@mateoconlechuga mateoconlechuga released this Feb 18, 2018 · 21 commits to master since this release

About

This is the foremost tool in CE image conversion. Simply hand it a bunch of images, and it will determine the best 8-bit palette and create either a C, assembly, or ICE include file for use in your programs.

For usage, please see the relevant readme

Once you've downloaded the binary, you probably want to discard the OS prefix and move it into a directory of your $PATH, so you can directly call convpng.

Assets 4

@mateoconlechuga mateoconlechuga released this Feb 15, 2018 · 24 commits to master since this release

About

This is the foremost tool in CE image conversion. Simply hand it a bunch of images, and it will determine the best 8-bit palette and create either a C, assembly, or ICE include file for use in your programs.

For usage, please see the relevant readme

Once you've downloaded the binary, you probably want to discard the OS prefix and move it into a directory of your $PATH, so you can directly call convpng.

Assets 5

@mateoconlechuga mateoconlechuga released this Jan 26, 2018 · 28 commits to master since this release

About

This is the foremost tool in CE image conversion. Simply hand it a bunch of images, and it will determine the best 8-bit palette and create either a C, assembly, or ICE include file for use in your programs.

For usage, please see the relevant readme

Once you've downloaded the binary, you probably want to discard the OS prefix and move it into a directory of your $PATH, so you can directly call convpng.

Assets 4

@mateoconlechuga mateoconlechuga released this Oct 15, 2017 · 45 commits to master since this release

About

This is the foremost tool in CE image conversion. Simply hand it a bunch of images, and it will determine the best 8-bit palette and create either a C, assembly, or ICE include file for use in your programs.

For usage, please see the relevant readme

Once you've downloaded the binary, you probably want to discard the OS suffix and move it into a directory of your $PATH, so you can directly call convpng.

Assets 5

@mateoconlechuga mateoconlechuga released this Jul 3, 2017 · 62 commits to master since this release

About

This is the foremost tool in CE image conversion. Simply hand it a bunch of images, and it will determine the best 8-bit palette and create either a C or ASM include file for use in your programs.

For useage, please see the relevant readme

Assets 4
Apr 7, 2017

v5.6

No valgrind leaks, passes all gdb checks
Jan 18, 2017

v5.5

Delete convpng.log
Pre-release
Pre-release

@mateoconlechuga mateoconlechuga released this Mar 23, 2016 · 111 commits to master since this release

About

This is the foremost tool in CE image conversion. Simply hand it a bunch of images, and it will determine the best 8-bit palette and create either a C or ASM include file for use in your programs.

Usage

ConvPNG uses convpng.ini to convert files. A sample one may look like this: (OPTIONAL entries can be omitted if they are not required)

#GroupC            : gfx_group_1
#Compression       : none
#Palette           : xlibc
#Tilemap           : 16,16,true
#TranspColor       : 255,255,255,255
#PNGImages         :
 image1
 image2

#GroupC can be #GroupASM for converting to the ASM format. (#GroupICE is also supported for ICE programs). Files are converted to their own separate .c or .asm files; and then linked together into groups and palettes through <name of group>.c and <name of group>.h, where you can simple do #include <name of group>.h or #include <name of group>.incin your programs for easy inclusion of images.

OPTIONAL Compression: (Compression type: none, rle, lz77)

OPTIONAL Palette: (Use a built-in palette or a custom one: xlibc, rgb332, or specify the name of the palette, i.e. palette.png. Custom palettes should be 1 pixel in height, and one pixel width per color entry, up to 256 colors)

OPTIONAL Tilemap: (Create a tilemap from the image; 1st argument is tile width, 2nd argument is tile height, 3rd argument is to output a table with pointers to each tile)

OPTIONAL TranspColor: (Transparent color: r,g,b,a - a will most always be 255) This is optional, transparent colors will also be moved to palette entry 0.

OPTIONAL NoPaletteArray: Don't output the array to the group source file. This can be used if you are using the same palette across multiple groups

OPTIONAL OutputPaletteImage: Output an image of the palette in png format of the group. The image is written to [group_name]_pal.png

Another option available is CreateGlobalPalette, used to build global palettes for use across multiple groups. Choose some images you wish to set your palette to, as shown in the example convpng.ini below:

#CreateGlobalPalette : main_palette
#PNGImages           :
 apple
 dice

#GroupC              : dice_gfx
#Palette             : main_palette
#OutputPaletteImage  :
#PNGImages           :
 dice

#GroupC              : apple_gfx
#Palette             : main_palette
#Compression         : lz77
#NoPaletteArray      :
#PNGImages           :
 apple

Command Line Options:

-i : Use inifile as input rather than convpng.ini

Assets 3
Oct 31, 2016

v5.3

Fix asm palette output
You can’t perform that action at this time.