drewnoakes / metadata-extractor

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Apache License 2.0
2.56k stars 480 forks source link

[PNG screenShot] java.io.EOFException: End of data reached. #499

Closed cmarchand closed 3 years ago

cmarchand commented 3 years ago

Hello, I use release 2.14.0 of metadata-extractor, and I have this exception, on attached file.

Caused by: java.io.EOFException: End of data reached.
    at com.drew.lang.StreamReader.getByte (StreamReader.java:62)
    at com.drew.lang.SequentialReader.getInt32 (SequentialReader.java:221)
    at com.drew.imaging.png.PngChunkReader.extract (PngChunkReader.java:87)
    at com.drew.imaging.png.PngMetadataReader.readMetadata (PngMetadataReader.java:98)
    at com.drew.imaging.ImageMetadataReader.readMetadata (ImageMetadataReader.java:157)
    at com.drew.imaging.ImageMetadataReader.readMetadata (ImageMetadataReader.java:124)
    at com.drew.imaging.ImageMetadataReader.readMetadata (ImageMetadataReader.java:204)

jenkins-meteo-indics

Any help will be much appreciated.

9037568 commented 3 years ago

This image is missing the required IEND chunk.

cmarchand commented 3 years ago

Ok, so I can say this image is not correct, and does not respect the required format. This picture has been extracted from a PDF, and opening / saving it with Gimp solves the problem. Thanks a lot.