An example of aligned double JPEG (A-DJPG) compression: the uncompressed image is first compressed, with a block grid shown in yellow, obtaining a single compressed image ; this image is again compressed, with a block grid shown in red, aligned with the previous one, obtaining the final image .