Home

Anonymous

I spent a lot of time looking for a tool to reduce the color depth of true color images without creating bands of color in the resulting image. After searching the web for a solution, I hacked together a program with components taken from other open-source code-sets.

It is my hope that my efforts will benefit others who might have the same need.

Get the source from SVN. Email me if you have any questions arya (dot) webhost (at) gmail (dot) com.

Features (current v0.2)

  • Convert 24-bit, 32-bit images to 24-bit or 32-bit dithered images with a 16-bit color depth.
  • User specified source and destination folders.
  • Traverse sub-directories of source folder for images to convert.
  • Mirror source directory structure in the destination folder for convenience.
  • Supports multiple image formats such as png, bmp, jpg, etc. (v0.2)
  • Outputs rgb565 and rgb666 color depths. (v0.2)

Usage

LoRes {--source=srcfolder | --file=srcfile } [--dest=destfolder --nodither --outcolor=bpp --hexdump]

  • --file source file to convert (cannot be used with --source)
  • --source source folder (and sub-folders) to scan for images to convert (cannot be used with --file)
  • --dest destination folder for converted images (defaults to ./converted)
  • --outcolor 16 for rgb565 (default), 18 for rgb666
  • --nodither used to test the difference between the dithered and non-dithered image
  • ** --hexdump** dump output file pixel data to a text file (slow)

History

  • v0.01 - July 27, 2010: Works with 24-bit and 32-bit png images. Traverse sub-directories of source folder.
  • v0.02 - Aug 01, 2010: Works with png, bmp and jpg images. Supports rgb565 and rgb666 output color depths.

MongoDB Logo MongoDB