Closed fabiencastan closed 3 years ago
It looks like at least colorspace is missing when using OpenImageIO 2.1.12 on Ubuntu 20.04
Regarding the colorspace issue, this looks correct to me
int srgb_intent;
if (png_get_sRGB(sp, ip, &srgb_intent)) {
spec.attribute("oiio:ColorSpace", "sRGB");
}
This would need some testing I think.
Try #2767 for what I think is a complete fix (for reading PNG, not writing yet).
I merged #2767, and that should fix this issue -- full Exif ought to read properly from PNGs now.
Describe the bug
Many metadata are not recognized on PNG files.
To Reproduce
Compare results of iinfo and exiftool on the provided PNG file.
Expected behavior
Get access to all metadata.
Evidence
These 2 following images (1 JPG, 1 PNG) should have the same metadata keys: http://caseyconnor.org/pub/image/bugs/meshroom/IMG_8681.png http://caseyconnor.org/pub/image/bugs/meshroom/IMG_8624.jpg If we analyze them with exif tool we retrieve all metadata. If we look at it with iinfo, we get all metadata on the JPG file but only some of them on the PNG. For instance, "ICCProfile" is read properly, but some important metadata like "ExposureTime", "FNumber", "Make", "Model" etc. are missing.
The issue has been reported on Meshroom: https://github.com/alicevision/meshroom/issues/751
Platform information: