metadata not passed to the writer
Opened this issue · 2 comments
We recently discovered an issue on our server that's probably the same as dbmdz/iiif-server-hymir#68 , the problem is that no ICC profile of is written by imageio-jnr. In fact, looking at TurboJpegImageWriter.write, it seems all IIOMetadata
is ignored when writing an image. Is there a trick to work around the problem?
In fact the main problem is not directly with IIOMetadata
, it's that the ColorModel
of the BufferedImage
is not used by the writer. So when the writer outputs an image with a custom ICCProfile
in the ColorModel
, the profile is not embedded and the colors are off. See this function for an example.
ICC color profiles are currently not supported (I don't think this is currently documented, but certainly should be!), but I'd gladly accept a PR that adds support for them!