Skip to content

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

Notifications You must be signed in to change notification settings

frossi85/mediancut-posterizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Median Cut PNG Posterizer

Reduces number of distinct color/alpha intensities in the image. Unlike typical posterization, which distributes levels evenly, this one tries to pick levels intelligently using varaince-based Median Cut and Voronoi iteration.

The goal of this tool is to make RGB/RGBA PNG images more compressible, assuming that lower number of unique byte values increses chance of finding repetition and improves efficiency of Huffman coding.

##Usage

posterize [ -d ] levels < input.png > output.png
  • -d — whether to use simple ordered dithering.
  • levels — number of levels to use (2-255). Lower number gives worse quality, but smaller file.

Only stdin/stdout is supported.

##GUI?

Integrated in ImageAlpha.app.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 94.3%
  • Objective-C 4.3%
  • Makefile 1.4%