Open Nathipha opened 1 month ago
On a phone so don't have full context, but my sense is that maybe we can loosen the restriction here and tolerate invalid data.
Certain chunks are not allowed to exist more than once, and the library is enforcing that. Some software must have produced invalid PNG data.
There are lots of ways data can be invalid. It happens. We generally try to tolerate and continue in the face of such errors.
If you want to dig into the details and see about making a PR I'll be happy to help review and merge.
Oh, so that means that that is a broken .png? Image viewers (even the Windows one) and PaintShopPro are able to open it just fine. How do I fix the image or make sure that I don't get the same problem with other images too, is there a parameter I can set in the library to just ignore this specific one?
How would I go about fixing this in code, I've got no idea where to even start tbh.
Java 8, metadata-extractor 2.19.0, xmpcore 6.1.11 I'm trying to read the metadata of this png image (also attached it) with the following code:
...but it's throwing an Exception:
This seems to be the same as in the second to last post in this issue thread (but the other poster hasn't created his own issue yet).
How do I go about fixing this?