Re: Basic question - PHP usage of SVG files

From: Date: Thu, 22 Nov 2007 02:05:05 +0000
Subject: Re: Basic question - PHP usage of SVG files
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-264953@lists.php.net to get a copy of this message
Larry, Thank you for responding.
I think you missed the point. SVG is just text. ... There's no need for SVG support per se, as SimpleXML provides all you need anyway.
I did miss the point - thanks for setting me straight. However, I'm still unsure about using SVGs. On the one hand, what I'm using as source files are originally in SVG format and I want to be able to dynamically resize and scale them without loss of clarity. But, after they have been resized and scaled, then I think I need to send the resulting image to the browser in some raster image format. Indications are that SVG support on browsers is still not as uniform as PNG or other raster graphics formats. At that last step, assuming that I have manipulated the images to my satisfaction with SimpleXML, can I then output the result in PNG or JPG with PHP? I'm not so sure this can be done. The tricky part is that I am building PHP scripts that could be deployed on servers with different PHP settings, so I'm not confident that I can rely on PEAR or ImageMagick functions being present. Are they standard on PHP > 5? Forgive me if my questions are clueless to the point of making the questions unclear. -- Dave M G

« previous php.general (#264953) next »