/jpguncrop

jpg Acropalypse POC

Primary LanguageC++MIT LicenseMIT

jpguncrop

jpg Acropalypse POC

Suppose you have two identical images except for one circle being blue and the other being red, and then you compress them with jpg.

redcircle.jpg bluecircle.jpg

If you redact these jpg files now and save them losslessly

croppedred.png croppedblue.png

In fact due to jpg compression artifact the files are different and therefore you can unredact them.

Diff between the two images :

Pixel wise diff

See jpguncrop.cpp for how the images are constructed.

require opencv and build with :

cmake .

make