[magick-users] Suggestion: PerlMagick's Read method to accept
an SVG string
Ron Savage
ron at savage.net.au
Tue Nov 27 00:36:59 PST 2007
On Tue, 2007-11-27 at 01:06 -0500, Gabe Schaffer wrote:
Hi Gabe
> On 11/26/07, Ron Savage <ron at savage.net.au> wrote:
>
> > I will soon be generating a lot of SVG images as text strings, and I'd
> > like to feed these in to ImageMagick, in Perl, like this:
> >
> > my($s) = '<?xml...> <svg ...> <g ...> <path ... /> </g> </svg>';
> > my($i) = Image::Magick -> new();
> > my($r) = $i -> Read("svg:$s");
>
> You're telling it to read a file named "<xml...". What you want to do
> is read it in as a blob. Note that being able to read a blob is
> dependent on the library. This may work with SVG but not other
> formats.
Sigh. You, again, Gabe!
I don't expect the posted code to work - who would? I'm just saying I'd
like ImageMagick to be extended to support the code I'd like to run.
--
Ron Savage
ron at savage.net.au
http://savage.net.au/index.html
More information about the Magick-users
mailing list