Realcodeart.com

JPEG

The routine that squeezes every photo you have ever sent.

Thomas G. Lane and the Independent JPEG Group wrote the code that compresses digital photos.

Independent JPEG Group, Thomas G. Lane

License on this page

License notice

Copyright (C) 1991-1995, Thomas G. Lane. Permission is hereby granted to use, copy, modify, and distribute this software for any purpose, without fee, provided the Independent JPEG Group copyright and no-warranty notice stay unaltered when source is distributed. If only executable code is distributed, the documentation must state: "this software is based in part on the work of the Independent JPEG Group".

Thomas G. Lane and the Independent JPEG Group wrote the code that compresses digital photos, the routine behind nearly every picture you have ever sent. The bars are the opening of the fast inverse DCT, which turns frequency data back into pixels.

JPEG cuts an image into small blocks and describes each block as a sum of waves. A decoder unpacks the coefficients and runs the transform backward. The bars show a workspace being set up, then a pass down the columns and across the rows.

History of JPEG

Gift guide: Which piece to give

Next piece: Hello, world

Related pieces