Implementation of JPEG in Python. Primary use is educational.
Heavily inspired on this explanatory video by Computerphile.
The following notebooks contain useful examples:
- compress and decompress image with this notebook.
- walk-through of the code in this notebook.
- apply a discrete cosine transform to an image this notebook.
- apply an inverse discrete cosine transform to an image this notebook.
- The wiki page explains clearly the different steps of the JPEG - actually the JFIF - algorithm.
- This article was helpful to understand the inverse Discrete Cosine Transform (DCT).