[NTG-context] metapost: remapping colors of an SVG picture
Hans Hagen
j.hagen at xs4all.nl
Thu Feb 20 18:30:43 CET 2020
On 2/20/2020 10:29 AM, Jan U. Hasecke wrote:
> 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?
mf and i are playing with an overload mechanism (actually pretty
trivial) ... more later but in principle the answer is yes, but
- first we have to play around a bit
- then it needs to end up in the core
- then there need to be a new context upload
- and mf has to wikify it
so, some patience is needed
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
More information about the ntg-context
mailing list