The JPEGAA application (JPEG Ad Absurdum) illustrates the degradation of an image resulting from multiple iterations of JPEG encoding.
The application will document the the base (starting) image and will then perform the requested number of cycles of:-
- Encode and save the image as a JPEG in the images/JPCnn.jpeg file (where nn is the cycle number)
- Reload the image from disk.
- Document the reloaded image.
- Save a bitmap of the reloaded image in the images/JPCnn.bmp file (where nn is the cycle number)
The input image (CIMG-2X3.gif) was chosen as it is provocative for JPEG encoding, showing significant ghosting artefacts from the first cycle of encoding.