An image quantizer, in C++
  • C 50.1%
  • C++ 47.3%
  • Objective-C 2.4%
  • CMake 0.1%
Find a file
2026-01-17 16:51:55 +01:00
.github/workflows CI: add build and release scripts. 2023-09-10 10:56:17 +02:00
libs Add interface and files support. 2026-01-17 16:51:55 +01:00
resources App: harmonize executable generation. 2023-03-27 22:36:30 +02:00
src Add interface and files support. 2026-01-17 16:51:55 +01:00
.gitignore Initial commit 2021-05-16 16:32:58 +02:00
LICENSE.md Rename project to Quanto. 2023-03-26 22:48:18 +02:00
LICENSE_EXTERNAL.md Add licenses. 2021-05-16 16:34:51 +02:00
premake5.lua Add interface and files support. 2026-01-17 16:51:55 +01:00
README.md Rename project to Quanto. 2023-03-26 22:48:18 +02:00

Quanto

Logo

Quanto is a PNG-quantization tool strongly inspired by ImageAlpha. It uses the same existing algorithms: PngQuant, Posterizer and pngnq to transform any PNG into a 8-bit palettized image. This is an efficient way of generating a smaller image file while preserving perceptual quality. Please see the LICENSE_EXTERNAL.md file for the libraries respective licenses.

Both a command line tool and a GUI application are provided.

Screenshot

Features

  • Three quantization algorithms.
  • Custom number of colors in the palette.
  • Support for dithering.
  • Support for removing the alpha channel of an image.
  • Compare the size of your image before and after.
  • Zoom and pan the generated image, compare it with the source.
  • Drag and drop an image to process it.

Command line use

  • --i,--in <path(s) to file(s)>
    Image(s) to quantize
  • --o,--out <path(s) to file(s)>
    Destination path(s). If empty, will use input path + timestamp or the input path itself if --force enabled
  • --f,--force
    Output in place if no output path specified, erasing input file(s) if present (disabled by default)

Settings

  • --m,--mode <(0: ImageQuant, 1: PngNeuQuant, 2: Posterizer)>
    Compressor to use (defaults to ImageQuant)
  • --c,--colors <in 2,256>
    Number of colors in the palette (defaults to 256)
  • --d,--dither
    Should dithering be applied (disabled by default)
  • --na,--no-alpha
    Remove alpha channel (disabled by default)

Infos

  • --v,--version
    Displays the current Thoth version.
  • --license
    Display the license message.
  • --license-ext
    Display the dependencies license messages.

Future improvements

  • Improve zooming (filtering mode,...).
  • Add support for pngcrush.