All Projects → kornelski → Pngquant

kornelski / Pngquant

Licence: other
Lossy PNG compressor — pngquant command based on libimagequant library

Programming Languages

c
50402 projects - #5 most used programming language
rust
11053 projects
shell
77523 projects
Roff
2310 projects
Makefile
30231 projects

Projects that are alternatives of or similar to Pngquant

Libimagequant
Palette quantization library that powers pngquant and other PNG optimizers
Stars: ✭ 344 (-91.58%)
Mutual labels:  quality, quantization, conversion, image-optimization, pngquant, palette
pngquant
A Python Wrapper of Pngquant
Stars: ✭ 27 (-99.34%)
Mutual labels:  png, png-compression, conversion, image-optimization, quantization, pngquant
Image Optimizer
Image optimization / compression library. This library is able to optimize png, jpg and gif files in very easy and handy way. It uses optipng, pngquant, pngcrush, pngout, gifsicle, jpegoptim and jpegtran tools.
Stars: ✭ 785 (-80.79%)
Mutual labels:  png, image-optimization, pngquant
zImageOptimizer
Simple image optimizer for JPEG, PNG and GIF images on Linux, MacOS and FreeBSD.
Stars: ✭ 108 (-97.36%)
Mutual labels:  png, png-compression, image-optimization
Compress Images
Minify size your images. Image compression with extension: jpg/jpeg, svg, png, gif. NodeJs
Stars: ✭ 331 (-91.9%)
Mutual labels:  png, image-optimization, pngquant
pngloss
Lossy compression of PNG images
Stars: ✭ 73 (-98.21%)
Mutual labels:  png, png-compression, image-optimization
Crunch
Crunch is a tool for lossy PNG image file optimization. It combines selective bit depth, color type, and color palette reduction with zopfli DEFLATE compression algorithm encoding using the pngquant and zopflipng PNG optimization tools. This approach leads to a significant file size gain relative to lossless approaches at the expense of a relatively modest decrease in image quality (see example images below).
Stars: ✭ 3,074 (-24.77%)
Mutual labels:  png, pngquant, png-compression
Pngquant Photoshop
Photoshop plug-in for saving PNG images with pngquant compression
Stars: ✭ 197 (-95.18%)
Mutual labels:  image-optimization, pngquant
Essential Image Optimization
Essential Image Optimization - an eBook
Stars: ✭ 1,950 (-52.28%)
Mutual labels:  png, image-optimization
Libimagequant Rust
libimagequant (pngquant) bindings for the Rust language
Stars: ✭ 17 (-99.58%)
Mutual labels:  quantization, pngquant
Mediancut Posterizer
Lossy PNG compressor for RGBA PNGs. Has two modes: lossy averaging filter (blurizer) that denoises the image and optimal posterization using Median Cut quantization to reduce number of unique colors in the image with minimal visual distortion
Stars: ✭ 203 (-95.03%)
Mutual labels:  png, image-optimization
vectorexpress-api
Vector Express is a free service and API for converting, analyzing and processing vector files.
Stars: ✭ 66 (-98.38%)
Mutual labels:  png, conversion
Imagealpha
Mac GUI for pngquant, pngnq and posterizer
Stars: ✭ 452 (-88.94%)
Mutual labels:  image-optimization, pngquant
dom-to-image-more
Generates an image from a DOM node using HTML5 canvas
Stars: ✭ 231 (-94.35%)
Mutual labels:  png, conversion
create-optimize-images
♻️ Reusable, scalable, bash scripts to create and optimize images.
Stars: ✭ 39 (-99.05%)
Mutual labels:  png, image-optimization
Color Diff
Implemets the CIEDE2000 color difference algorithm, conversion between RGB and lab color and mapping all colors in palette X to the closest color in palette Y based on the CIEDE2000 difference.
Stars: ✭ 296 (-92.76%)
Mutual labels:  conversion, palette
Av1an
Cross-platform command-line AV1 / VP9 / HEVC / H264 / VVC encoding framework with per scene quality encoding
Stars: ✭ 322 (-92.12%)
Mutual labels:  quality
Brevitas
Brevitas: quantization-aware training in PyTorch
Stars: ✭ 343 (-91.61%)
Mutual labels:  quantization
Howtheytest
A collection of public resources about how software companies test their software
Stars: ✭ 3,765 (-7.86%)
Mutual labels:  quality
Go Conv
Fast conversions across various Go types with a simple API.
Stars: ✭ 365 (-91.07%)
Mutual labels:  conversion

pngquant 2 CI

pngquant is a PNG compressor that significantly reduces file sizes by converting images to a more efficient 8-bit PNG format with alpha channel (often 60-80% smaller than 24/32-bit PNG files). Compressed images are fully standards-compliant and are supported by all web browsers and operating systems.

This is the official pngquant repository. The compression engine is also available as an embeddable library.

Usage

  • batch conversion of multiple files: pngquant *.png
  • Unix-style stdin/stdout chaining: … | pngquant - | …

To further reduce file size, try optipng, ImageOptim, or zopflipng.

Features

  • High-quality palette generation
  • advanced quantization algorithm with support for gamma correction and premultiplied alpha
  • unique dithering algorithm that does not add unnecessary noise to the image
  • Configurable quality level
  • automatically finds required number of colors and can skip images which can't be converted with the desired quality
  • Fast, modern code

Options

See pngquant -h for full list.

--quality min-max

min and max are numbers in range 0 (worst) to 100 (perfect), similar to JPEG. pngquant will use the least amount of colors required to meet or exceed the max quality. If conversion results in quality below the min quality the image won't be saved (if outputting to stdin, 24-bit original will be output) and pngquant will exit with status code 99.

pngquant --quality=65-80 image.png

--ext new.png

Set custom extension (suffix) for output filename. By default -or8.png or -fs8.png is used. If you use --ext=.png --force options pngquant will overwrite input files in place (use with caution).

-o out.png or --output out.png

Writes converted file to the given path. When this option is used only single input file is allowed.

--skip-if-larger

Don't write converted files if the conversion isn't worth it.

--speed N

Speed/quality trade-off from 1 (slowest, highest quality, smallest files) to 11 (fastest, less consistent quality, light comperssion). The default is 4. It's recommended to keep the default, unless you need to generate images in real time (e.g. map tiles). Higher speeds are fine with 256 colors, but don't handle lower number of colors well.

--nofs

Disables Floyd-Steinberg dithering.

--floyd=0.5

Controls level of dithering (0 = none, 1 = full). Note that the = character is required.

--posterize bits

Reduce precision of the palette by number of bits. Use when the image will be displayed on low-depth screens (e.g. 16-bit displays or compressed textures in ARGB444 format).

--strip

Don't copy optional PNG chunks. Metadata is always removed on Mac (when using Cocoa reader).

See man page (man pngquant) for the full list of options.

License

pngquant is dual-licensed:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].