Trying to subtract a JPEG image from itself results in a non empty image, i.e. the delta image is almost white, but something from the original image is still visible.
I do not know if this is something intrinsic to the JPEG format, or if it depends on the program I used or on my parameters.
The program I used for a test is ImageMagick.
This is the command (tried with different values of -fuzz
):
compare.exe img.jpg img.jpg delta1.jpg
compare.exe -fuzz 1000.0 img.jpg img.jpg delta2.jpg