ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: mfrach on August 27, 2021, 11:07:55 AM

Title: Truncated PNG image
Post by: mfrach on August 27, 2021, 11:07:55 AM
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



Title: Re: Truncated PNG image
Post by: Phil Harvey on August 28, 2021, 08:46:19 AM
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