Skip to content
/ Balic Public

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

License

Notifications You must be signed in to change notification settings

Hopson97/Balic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published