An open API service indexing awesome lists of open source software.

https://github.com/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
https://github.com/hopson97/balic

Last synced: 4 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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
```

Example:
```
./balic chinatown.jpg out.jpg
```

## Example

Flood fill compress:

Fullsize:

![Balic](https://i.imgur.com/tAchXKD.gif)

Line Compression:

![china_town_lines](https://i.imgur.com/JVhB3An.jpg)

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