Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

SVG in GD::Graph?

by chinman (Monk)
on Feb 08, 2003 at 17:54 UTC ( [id://233750]=perlquestion: print w/replies, xml ) Need Help??

chinman has asked for the wisdom of the Perl Monks concerning the following question:

Fellow clergypersons,

I've been using GD::Graph for a while and I have found it to be most excellent. It sure would be nice to export my images to a vector format like SVG instead of PNG or JPEG. Does anyone know of an attempt to add this functionality to GD::Graph? I guess it would, in reality, require adding SVG funtionality to GD itself. I have searched the normal places on CPAN. I see there is something called SVGGraph, which I have not tried, but that would cause me to have to basically rewrite all of my graphing routines. Any suggestions?

Thanks,
chinman

Replies are listed 'Best First'.
Re: SVG in GD::Graph?
by Flame (Deacon) on Feb 08, 2003 at 21:43 UTC
    I see several problems with this. GD is a graphics library, and in a sense, SVG really isn't graphics, it's text. But that aside, GD is not suited to working in vectors as it maintains its state on a pixel by pixel basis, rather than 'line of color * between x1,y1,x2,y2' or similar vector methods. So I'm sorry to say, GD, without a rewrite, is probably not capable of SVG.



    My code doesn't have bugs, it just develops random features.

    Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://233750]
Approved by valdez
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2025-07-19 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.