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.
- Host: GitHub
- URL: https://github.com/amirhnajafiz-university/s6mm01
- Owner: amirhnajafiz-university
- Created: 2022-06-05T06:25:07.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-31T06:25:34.000Z (over 2 years ago)
- Last Synced: 2025-03-24T16:46:09.324Z (3 months ago)
- Topics: compression, image-compression, jpeg-image-compression, python, python3
- Language: Python
- Homepage:
- Size: 3.58 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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*.