// create the transcoder output
TranscoderOutput output = new TranscoderOutput(outputStream);
// save the image
try {
t.transcode(input, output);
} catch (TranscoderException e) {
logger.error("Impossible to convert svg to jpeg: " + e.getCause(),
e);
throw new SpagoBIEngineRuntimeException(
"Impossible to convert svg to jpeg: " + e.getCause(), e);