* @param transformer The optional image transformer
* @throws java.io.IOException Failed to generate the representation
*/
public static void generate(java.io.InputStream is, java.io.OutputStream os,
SVGImageTransformer transformer) throws java.io.IOException {
SVGImpl svg = generateSVGImpl(is);
if (transformer == null) {
String str=svg.getHeaders()+svg.generateSVGString();
os.write(str.getBytes());
} else {
transformer.transform(svg, os);
}
}