: If the image was converted from another format to JPEG (which could imply a G5 file, possibly a raw image format), try re-converting it from the original format. Sometimes, conversion processes can introduce errors.

~85% (when combined with header fix)

If the file isn’t actually a JPEG but has .jpg in the name incorrectly, check its true format with a tool like file (Linux/macOS) or a hex editor.