BufferedImageTranscoderOutput output =
new BufferedImageTranscoderOutput();
// perform the transcoding
try {
bufferedImgTranscoder.transcode(transcoderInput, output);
} catch (TranscoderException e) {
String imagePath = transcoderInput.getURI();
logger.error("svg-transcoding-error", imagePath, e);
throw new IOException(e.getLocalizedMessage());
}