Vector Converter Documentation
Vector Converter allows automatic conversion between two vector graphic formats, SVG and VML, and the GIF format, thanks to PHP functions and XSLT language.
Documentation version: Documentation.html 2007-02-251. Requirements
- PHP (version 4 and 5 supported)
- You need GD2 (for more info see: GD manual on php.net) and xsl extension enabled to display all images correctly
-
GD version
- Between version 1.6 and 2.0.28, GIF support in GD library has been suspended, so make sure you have a greater version
-
PHP 4
- Since PHP 4.3 there is a bundled version of the GD library
-
PHP 5
- You need a wrapper (included in this version) to display SVG and VML correctly
- Web Browser
- Mozilla to correctly view SVG image file and Internet Explorer for VML.
- Web Server (i.e. Apache) installed on your computer
- Operating System
- Windows or Linux
2. Install
- Unzip the ditribution in your webserver's document directory (i.e. C:/Server/Apache/htdocs)
- Ensure that your web server is running
- Open your preferred browser and go to index.html under the project directory
3. Vector Converter files structure
- gif2svg.php: include a GIF image in an SVG
- gif2vml.php: include a GIF image in a VML
- svg2gif: transform, thanks to PHP GD2 library, an SVG image in a GIF format
- svg2vml: convert SVG in a VML, through XSLT language
- vml2gif: transform, thanks to PHP GD2 library, a VML image in a GIF format
- vml2svg: convert VML in a SVG, through XSLT language
- xslt-php4-to-php5.php: wrapper that ensure compatibility with PHP4 xslt function calls and allows Vector Converter to work quite properly
- svg2vml.xsl and vml2svg.xsl: main stylesheets that enables transformations between SVG and VML
- FONT/: truetype fonts
- XSL/: sub-stylesheets for VML to SVG conversion
- XSL2/: sub-stylesheets for SVG to VML conversion
MAIN FILES
MAIN FOLDERS
4. Contacts
- Giorgio Massaro - massaro@cs.unibo.it
- Angelo Di Iorio - diiorio@cs.unibo.it
- Fabio Vitali - fabio@cs.unibo.it