[NTG-context] metapost: remapping colors of an SVG picture

Jan U. Hasecke juh+ntg-context at mailbox.org
Thu Feb 20 10:29:59 CET 2020


Am 18.02.20 um 19:24 schrieb Jan U. Hasecke:
> Am 18.02.20 um 19:17 schrieb mf:
>> Il 18/02/20 19:07, Jan U. Hasecke ha scritto:
>>> Am 18.02.20 um 14:53 schrieb Hans Hagen:
>>>
>>>> \setupcolors[rgb=no]
>>>> \startMPcode
>>>>      draw lmt_svg [ filename = "sample.svg" ] ;
>>>> \stopMPcode
>>> I get this error.
>>>
>>> ! Not implemented: (unknown numeric)=(string).
>>> <to be read again>
>>> ]
>>> <*> ... ; p := lmt_svg [ filename = "sample.svg" ]
>>>
>> That's because it's LMTX only (the "lmt" prefix of "lmt_svg" should
>> stand for "luametatex").
> 
> Yes, with lmtx it works but there is no image in the resulting file.

Sorry for digging deeper.

I am very thrilled by the idea that I could simply adjust a RGB SVG to
well defined CMYK colors with this trick.

Can anybody confirm if this works?

juh


More information about the ntg-context mailing list