Truncated PNG image

Started by mfrach, August 27, 2021, 11:07:55 AM

Previous topic - Next topic

mfrach

Hello.
I have a PNG image that is I think a little bit corrupt, but in a way that is (I think) not too uncommon.

I was hoping to use exiftool to basically read the original and rewrite it in a valid form.  The command line I am using is:
    exiftool.exe  -artist=me -ignoreMinorErrors -out modified.png  original.png

I thought the -ignoreMinorErrors might help.

When I run this I get:
Warning: Truncated PNG image - original.png
Error: Error writing output file - original.png
    0 image files updated
    1 files weren't updated due to errors

No output image is written.  Is there a way to ask exiftool to ignore the fact that the input PNG image is truncated, and write the output anyway?

Marty




Phil Harvey

Hi Marty,

Truncated image data is not a minor error, so it can't be ignored.  ExifTool will not write a file like this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).