You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of dvisvgm 3.3 the conversion of CMYK colors to RGB has been modified so that they are now more similar to those shown by Ghostscript and several PDF viewers. When using the dvips backend, the colors can be processed accordingly because the DVI file contains color specials. The dvisvgm backend, on the other hand, sometimes creates literal SVG fragments with the color hard-coded as RGB hex values. In this case, the CMYK to RGB conversion takes place in a LaTeX (or TikZ) package and dvisvgm can't apply its color interpolation.
Brief outline of the proposed feature
As of dvisvgm 3.3 the conversion of CMYK colors to RGB has been modified so that they are now more similar to those shown by Ghostscript and several PDF viewers. When using the dvips backend, the colors can be processed accordingly because the DVI file contains
color
specials. The dvisvgm backend, on the other hand, sometimes creates literal SVG fragments with the color hard-coded as RGB hex values. In this case, the CMYK to RGB conversion takes place in a LaTeX (or TikZ) package and dvisvgm can't apply its color interpolation.Here's an example:
The resulting SVG graphics created with dvips (left) and dvisvgm backend:
Here are the corresponding DVI snippets:
It would be great if the dvisvgm backend could create
color
specials too, e.g. something like this:To apply different stroke and fill colors, the SVG elements could also be split into several specials:
Usage example
No response
The text was updated successfully, but these errors were encountered: