https://bugs.documentfoundation.org/show_bug.cgi?id=98876

--- Comment #11 from Buovjaga <[email protected]> ---
(In reply to Gabor Kelemen (allotropia) from comment #10)
> A possible option could be to (re?)use the http://www.openjpeg.org/ library,
> which seems to me having some level of support for CYMK support[1] since
> quite some time (2014), and has 2-clauses BSD license[2].
> 
> [1] https://github.com/uclouvain/openjpeg/pull/559/files
> [2] https://github.com/uclouvain/openjpeg/blob/master/LICENSE
> 
> @Tomaz: any thought on this direction?

libjpeg-turbo also supports CMYK, but it leaves colour management as an
exercise for the user:
https://github.com/libjpeg-turbo/libjpeg-turbo/blob/895287572db62318332a78395a0c07eb86137fd8/turbojpeg.h#L289

"In order to convert between CMYK and RGB, it is necessary to use a color
management system (CMS.) A CMS will attempt to map colors within the printer's
gamut to perceptually similar colors in the display's gamut and vice versa, but
the mapping is typically not 1:1 or reversible, nor can it be defined with a
simple formula. Thus, such a conversion is out of scope for a codec library."

In that openjpeg commit I see they use liblcms2, which we also have as a
dependency.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to