Skip to content
/ JPEG Public

Compression of images with JPEG algorithm using python and Huffman codes.

Notifications You must be signed in to change notification settings

josgard94/JPEG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JPEG

Compression of images with JPEG algorithm using python and Huffman codes.

The implementation that was carried out in this project uses huffman codes to reduce the size of the image.

for its execution:

1.- Compile the code corresponding to the JPEG algortimo, within this code a file with probability values of each value of intensity of the image is generated.

2.- Once the algorithm has been executed, we proceed to generate the huffman codes compiling the file huffman_codes.py, this algorithm generates a text file with the codes that have been generated from the probabilities.

3.- Compile the corresponding source file to the Huffman decoder to recover the intensity values of the image.

4.- Compile the file name idct.py to recover the new image already compressed in size.