MediaInfoLib
MediaInfoLib copied to clipboard
PNG: recognise sRGB, gAMA and cHRM chunks
sRGB (with colorimetry intent inside) chunk overrides gAMA chunk, since sRGB is piecewise (see png spec) and cHRM (that has primaries and white point), iCCP overrides both sRGB and gAMA and cHRM.
Exiftool implements that.
Samples are here: https://gitlab.gnome.org/GNOME/gimp/-/issues/5363 and yes, it is now supported by GIMP, also supported by Windows viewer, Chrome, Mozilla, not supported by Photoshop.
Please do not set sRGB for 2.2 gAMA as ImageMagick does, it is an actual bug in ImageMagick.