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

https://github.com/umutsevdi/rle-img-compression

A Utility program that can compress PGM images using Run Length Encoding Algorithm or reconstruct them without loss.
https://github.com/umutsevdi/rle-img-compression

c image pgm pgm-image rle rle-compression-algorithm

Last synced: 4 months ago
JSON representation

A Utility program that can compress PGM images using Run Length Encoding Algorithm or reconstruct them without loss.

Awesome Lists containing this project

README

        





Logo


Run Length Encoding Image Compression



A C program that can compress and decompress images, display instances of colors and edit them.



## How to use
* When the program starts, you'll see two avaliable commands. To run a command type it's name.

## Compress
* Compresses a `pgm` image and saves it as `sqz` file format. Uses RLE-Image Compression.

`
RLE stands for Run Length Encoding. Images commonly have the same information repeated numerous times in a row. Images can have strips of the same pixel color for example. Run Length Compression stores representations of this data in per run format, thereby compressing the data
`

## Construct
* Reads the given compressed `.sqz` file.




* Then allows you to choose one of following commands.
* decode : Reconstructs the `pgm` image.
* recolor : Chagnnges all instances of given color.
* edit : `not avaliable` Edits given pixel in the file.
* histogram : displays instances of each color in the file.