PHP Classes

PHP SVG to Image Converter: Parse and render SVG vectorial drawing as an image

Recommend this page to a friend!
  Info   View files Example   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 403 All time: 6,514 This week: 109Up
Version License PHP version Categories
svgtoimage 1.0.1The PHP License5PHP 5, Graphics, Parsers


This class can parse and render SVG vectorial drawing as an image.

It takes the path of a vectorial graphics drawing in SVG format and parses it to extract the graphical shapes that are defined in it.

The class can then create an image and render the graphics defined in the SVG file and save the image in PNG, GIF or JPEG formats.

Innovation Award
PHP Programming Innovation award winner
January 2020

Prize: One official elePHPant Plush Mascott
SVG is a well known format for describing vectorial graphics format that is better for storing the definition of graphics that should be rendered in high resolution screens or printed media.

Some applications need to use raster graphic formats because they easier and faster to render.

This package provides a pure PHP based solution to convert SVG graphics into bitmap based image formats.

Manuel Lemos
Picture of Chouchen
  Performance   Level  
Name: Chouchen <contact>
Classes: 5 packages by
Country: France France
Age: ???
All time rank: 263172 in France France
Week rank: 76 Up5 in France France Up
Innovation award
Innovation award
Nominee: 3x

Winner: 2x

  Files folder image Files  
File Role Description
Accessible without login Plain text file basic.svg Data Auxiliary data
Accessible without login Plain text file Exemple_histogramme.svg Data Auxiliary data
Accessible without login Plain text file gd_info.php Aux. Auxiliary script
Plain text file Log.php Class Class source
Plain text file SvgToImage.php Class Class source
Accessible without login Plain text file test.php Example Example script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,514
This week:109Up