Giter VIP home page Giter VIP logo

quanto's Introduction

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.

quanto's People

Contributors

kosua20 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.