Go to file
Niles Rogoff e014cdbcce Fixed bug where nonrandom dithering would only be half as effective as it should be 2016-07-21 11:13:04 -07:00
test Fixed two minor bugs 2016-07-21 09:45:54 -07:00
.gitignore NEW FANCY-ASS PROGRESS BAR 2016-07-11 11:32:38 -04:00
2bit.py Fixed bug where nonrandom dithering would only be half as effective as it should be 2016-07-21 11:13:04 -07:00
README.md Added support for nonrandom dither, auto dither, refactored test suite again 2016-07-21 09:43:11 -07:00

README.md

Image downsampling converter

Inspired by 2bit

Usage: python3 2bit.py infile.png [outfile.png] [bits] [--per-color] [--dither dither_value] [--non-random-dither num_pixels]

dither_value can be like 50%, 50 or .5

Note that using --non-random-dither without a dither argument will attempt to guess what dither percentage you want based on the number of bits

The best number for num_pixels is usually 7, but it should ideally be coprime with the height of the image

Warning: Will probably turn transparency black

You can change the number of bits for different results. 1 would be just black and white, while 8 would be the original image in greyscale.