1

I keep finding jpeg images on my computers, which are corrupt. Some have a gray band at the bottom, some are reported bad by Bad Peggy (but look normal when viewed in e.g. XNView) and some are just unreadable by XNView or any other program. Is there any way to determine, which program last modified the image? Bad Peggy says that some of the files are not jpegs based upon data in a couple of locations, but XNView has no issues with them. They display correctly and the metadata looks OK. At present there are no bad JPEGs, because I overwrote them with a good copy. My suspicion is that a program has a bug, which sometimes causes damage to JPEGs. My question is aimed at verifying this.

Thanks in advance, Steve

1
  • 1
    Please publish an example image online (OneDrive, Dropbox etc) and give us the link to it.
    – harrymc
    Commented Sep 4, 2023 at 10:22

1 Answer 1

0

Last edited using ..

If the editor decided to publish this info using EXIF like Paint.NET in this example:

like Paint.NET in this example

Tools like JPEGsnoop can try guess what camera or editor was used to create the file.

Few words about corruption

I don't know how this will help solve the corruption problem. Some tool corrupting the JPEGs IMO is unlikely. I repair JPEGs as a service and I don't recall ever seeing corruption that makes me suspect a specific tool. For example the grey band you refer to is frequently due to bit flips.

A program bug would perhaps produce reproducible damage and corruption. You should be able to extract a pattern of some kind probably. What you describe does not seem to suggest that.

A single bitflip can cause this type of corruption but far more often I see a larger area (say few hundred to few thousand bytes being corrupt). Some times the corruption looks random so hard to determine what caused it, but it also occurs I see a complete sector inside the corrupt file that is in fact part of a FAT directory (which could for example suggest file system corruption rather than file corruption).

A single bitflip inside encoded image data can do this:

enter image description here

Bad Peggy may be right after all ..

Tools like Bad Peggy are not uncommonly producing false positives as well as false negatives and thus can not be relied upon for a final judgement as to whether a file is corrupt or not.

It's also important to recognize the fact some image viewers open a file based on their contents rather than extension, and so it's well possible that a PNG with a JPEG or JPG extension is correctly identified by Bad Peggy as non-JPEG while your image viewer has no trouble opening it. For example a PNG with incorrect JPG extension will open just fine using a tool like ImageGlass.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .