Skip to content

SkylerRankin/JPEG-Decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JPEG Decoding

This notebook explores the mechanisms and algorithms at play behind one of the most widely used image file formats. By parsing the file byte by byte, and using a specification reference, we can interpret all of the information stored in the file, and generate the corresponding image without a pre-built image viewer. The primary reference used will be the International Telecommunication Union Recommendation T.81.

All functions are written using Python with diagrams and full explanations to accompany them. The following are some of the decoding steps discussed in the notebook:

  • Segment Parsing
  • Huffman Decoding
  • Quantization
  • MCU Building

Usage

With Jupyter installed, download jpeg_decoding.ipynb, and in its directory run

> jupyter notebook jpeg_decoding.ipynb

The project is also available in HTML format.

About

The basics of decoding JPEG files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published