Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

png2reducedrgb

Console/command line utility for reducing the RGB color bit depth of png images and writing the results out to png, binary or c source files. For example converting from rgb888 to rgb565, bgr555, rgb555, rgb444, etc.

png2reducedrgb: RGB bit depth reducer (by bbbbbr)
              Version: 1.0.2

usage: tilepalquant <file>.png [options]
-o <filename>          Output file (if not used then default is <png file>_out.[bin|png|c])
-h                     Show this help output
-v                     Verbose output (-vv for extra debug output)
-bit_depth <r,g,b>     Bits per RGB channel output (1-8 per channel, default: 5,5,5)
                         Example: "-bit_depth_out 5,5,5"
-loopy_hicol_rgb444    Preset for a hi-color Casio Loopy RGB444 format
-indexed8bpp           Indexed mode, one byte per pixel, outputs csource
-indexed4bpp_packed    Indexed mode, two byte per pixel (left in upper bits), outputs csource
-output_order_bgr      Write BGR order for raw binary output (default: RGB)
-output_little_endian  Write little endian (low bytes first) for raw binary output (default: big)
-output_mode <mode>    Sets output mode (bin, png, csource) (default: bin)
-use_metafile          Read extra options from file <inputfile>.meta (missing not an error)

Example usage: tilepalquant in.png -bit_depth_out 5,5,5 -o rgb_out.bin

About

Console/command line utility for reducing the RGB color bit depth of png images and writing the results out to png, binary or c source files

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages