by jaclaz · 4y ago · 0 comments
A very minor corruption in the file and poof you can retrieve nothing.
Many years ago there was a single program[1] that could, in a very small subset of cases, "fix" corrupted JPEG files (manually/inteactively), now (AFAIK) there is almost only [2] and [3] and this (service) [4] that actually produce (in some cases) good results.
In my (admitted) ignorance on the matter, I would have expected that with progresses like increased computer power, AI, deep fakes or whatever the problem by now was - if not solved - at least solved in a number of subset of cases.
[1] https://directory.s2services.com/jpg-bmp.htm
[2] https://www.jpegmedic.com/tools/jpegmedic/ https://www.jpegmedic.com/tools/
To solve this, the format itself needs to incorporate error correction. There are various ways to do that with different trade-offs, but all of them will hurt your compression ratio, because the only way to correct errors is to have some kind of redundancy, and removing redundancy is precisely what compression is about.
It is actually quite common to find partial/corrupted images.
Typically an image will have a grey band/area or it will be "shifted" in some parts, some examples are here:
https://www.jpegmedic.com/tools/jpegmedic/
Even checking if a file or an extent on disk is actually an image is not as easy as it seems (JFYI):
https://www.forensicfocus.com/forums/mobile-forensics/jpeg-c...
I believe that cloud storage and autosync fixed the issue of currupted images for most normal users.