From: Hans Hagen <pragma@wxs.nl>
To: ConTeXt list <ntg-context@ntg.nl>
Subject: Re: svg -> png conversion
Date: Tue, 09 Feb 2010 14:49:08 +0100 [thread overview]
Message-ID: <4B7167D4.6090900@wxs.nl> (raw)
In-Reply-To: <20100208134052.GA3639@gaston.couberia.bzh>
On 8-2-2010 14:40, Peter Münster wrote:
> Hello,
>
> How can I convert svg to png on the fly?
>
> I've created a file "test.rlx":
>
> <?xml version='1.0 standalone='yes'?>
> <rl:manipulators>
> <rl:manipulator name='png' suffix='svg'>
> <rl:old><rl:value name='path'/>/<rl:value name='file'
> method='nosuffix'/>.png</rl:old>
> <rl:new><rl:value name='path'/>/<rl:value name='prefix'/><rl:value
> name='file' method='nosuffix'/>.png</rl:new>
> <rl:step>
> inkscape -d 600 -e
> <rl:value name='new'/>
> <rl:value name='old'/>
> </rl:step>
> </rl:manipulator>
> </rl:manipulators>
>
> and a file "test.tex":
>
> \setupexternalfigures[conversion=png]
> \starttext
> \externalfigure[./myfile.svg]
> \stoptext
>
> But when running context on the file, it tries to convert the svg to pdf.
>
> What do I need to do?
new experimental ... you can specify a conversion but only those defined
will take place
\starttext
% \enabletrackers[figures.conversion,figures.locating]
\hbox {
\externalfigure[demo.svg][conversion=png,width=4cm]
\externalfigure[demo.svg][width=4cm]
}
\stoptext
of course we can collect conversions as only a few are implemented
i'll upload a new beta
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2010-02-09 13:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-08 13:40 Peter Münster
2010-02-08 22:19 ` Hans Hagen
2010-02-09 13:49 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B7167D4.6090900@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).