ByteArrayOutputStream stream, String svg, MimeType mime, Float width)
throws SVGRasterizerException, TranscoderException {
TranscoderInput input = new TranscoderInput(new StringReader(svg));
// Create the transcoder output
TranscoderOutput transOutput = new TranscoderOutput(stream);
// get right Transcoder, depends on mime
SVGAbstractTranscoder transcoder = SVGRasterizer.getTranscoder(mime);
if (width != null) {
/*
* If the raster image height is not provided (using the