openpreserve / jhove

File validation and characterisation.
http://jhove.openpreservation.org
Other
169 stars 79 forks source link

PNG: fix 'pixels per unit' property type mismatch #843

Closed prettybits closed 7 months ago

prettybits commented 1 year ago

Fixes #837, at least going by the stacktrace in the initial report. When processing the pHYs chunk, the "X pixels per unit" and "Y pixels per unit" properties were incorrectly setting PropertyType.INTEGER for values of type Long.