Skip to content

A simple image compressing and decompressing algorithm implemented with Python

Notifications You must be signed in to change notification settings

RamonZhou/MyJPG-Compressor

Repository files navigation

MyJPG-Compressor

A simple Python program which compresses BMP files into a custom JPG-like format using DCT, RLE and Huffman encoding. It also supports decompressing. The compression ratio is usually lower than 20%.

Library used: PIL, numpy, bitstring, dahuffman, pickle.

Usage:

Compress: python compress.py -e file.bmp

It will output to encoded_file.myjpg.

Decompress: python compress.py -d file.myjpg

It will output to decoded_file.bmp.

About

A simple image compressing and decompressing algorithm implemented with Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages