Hopson97 / Balic

Bad And Lossy Image Compressor: The perfect compressor (which doesn't actually compress, just lowers image quality giving the impression of compression) for all your lossy needs, created using C++ and SFML
GNU General Public License v3.0
4 stars 2 forks source link

Balic

Bad and Lossy Image Compressor

A program that "compresses" the quality of an image, allowing you view the process while it happens.

It does this by looking at pixel, and then doing a recursive flood fill until it cannot find anymore pixels of a similiar colour. This continues until the entire image has been "compressed".

This program does actually compress the image, it is just a name for a joke, as image compressing usually results in loss of image quality.

Building

Requires SFML library

On Ubuntu:

sudo apt-get install libsfml-dev

Building:

git clone https://github.com/Hopson97/Balic.git
cd Balic
cmake .
make

Running

./balic <image-file> <output>

Example:

./balic chinatown.jpg out.jpg

Example

Flood fill compress:

Fullsize:

Balic

Line Compression:

china_town_lines

Image source: https://streeteasy.com/blog/chinatown-still-nycs-best-real-estate-bargain/