Testing Progressive JPEG

Created: 19.11.2016 | Updated: 07.04.2017

Just a simple page to test if a JPEG image is progressive or not.

JPEGs can be stored as baseline JPEG or as progressive JPEG. In the case of a baseline JPEG the whole file needs to be loaded before it can be displayed. In case of progressive JPEGs they can be displayed as a blurry version of the image while still loading the whole file.

This is mainly achieved by storing the coefficients of the image in a different order. In the case of progressive JPEGs the primary coefficients of each 8x8 pixel block are stored first. Therefore it is possible to show a color block for each 8x8 pixel block pretty fast and improve the display of the image as soon as more content is loaded.

This simple code over here is just testing for the JPEG markers 0xFF, 0xC2 within the file to determine if it is progressive or not.

Example

Over here you can test your own files. Just open the file you want to test and get the result immediately.