|Ratings|| ||Unique User Downloads|| ||Download Rankings|
| 23%||Total: 2,373 ||All time: 1,642 This week: 135|
This class can be used to render a SVG graphic as a PNG image using Inkscape program.
It takes a SVG file and calls the Inkscape program to convert it to an image file in the PNG format.
Prize: One book of choice by Packt
|SVG is standard format for representing vectorial graphics.
SVG graphics can be rendered in Web browsers but not all of them provide SVG support.
This class provides an alternative solution to render SVG graphics in any browser by converting it into an image in PNG format.
$fsvg = './gion_desktop.svg';
//$fsvg = $_GET['fsvg'];
//$fsvg = $argv;
$osvg = new
icfSVG ( $fsvg );
$osvg_ogd = $osvg->image();
//header( 'Content-type: image/jpeg');
//imagejpeg( $osvg_ogd ,'' ,90 );
//header( 'Content-type: image/gif');
//imagegif( $osvg_ogd );
header( 'Content-type: image/png');
imagepng( $osvg_ogd );
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.