Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.48 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.48 KB

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.