Create JPEGs Automatically With SVG
By Benoit Marchal
2003-12-22
Reader Rating:

Variations On The Theme
Variations on the theme
The main benefit of using SVG and the Batik toolkit to produce images through XML is that every XML tool, including scripts and stylesheets, is now suitable to produce Web graphics.
I illustrated the technique with a bar chart, but the same technique applies for other images such as navigation buttons, technical drawings, and UML models. Note that you do not have to generate the entire image in your script. To import logos and other graphics created with an image editor, such as Adobe Illustrator, follow these steps:
In the image editor, save the image as SVG.
In the script, insert the following instruction: <use xlink:href="logo.svg"/>
With the Batik rasterizer and the flexibility of XML, you will find no shortage of applications for SVG.
First published by IBM developerWorks
If you found this article interesting, you may want to read these as well:
» Better SOAP Interfaces With Header Elements
» Variable Substitution In XML Documents
» Grab Headlines From A Remote RSS File
» Tip: Convert from HTML to XML with HTML Tidy
|