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

https://github.com/amirhnajafiz-university/s6mm01

First project of Multimedia Systems course.
https://github.com/amirhnajafiz-university/s6mm01

compression image-compression jpeg-image-compression python python3

Last synced: 3 months ago
JSON representation

First project of Multimedia Systems course.

Awesome Lists containing this project

README

        


S6MM01


Compress our images into JPEG standard.
Using YCrCb, Chroma Subsampling, Quantization, RLC and Huffman algorithms.
My first project of Multimedia systems course.

## How to use?

Clone into the repository:

```shell
git clone https://github.com/amirhnajafiz/JPEG-compression.git
```

After that install the dependencies:

```shell
pip install -r requirements.txt
```

Put your images in _in_ directory.

Now run the project:

```shell
python main.py
```

Enter the file name:

```shell
[Enter the file path] > myfile.png
```

Now you should have these files in _out_ directory:

```shell
|_ out/
|_ myfile.asfh (compressed file)
|_ encode_myfile.pickle
|_ htrees_myfile.pickle
```

You can see the image codes in *encode_myfile.pickle* and huffman trees in *htrees_myfile.pickle*.