} else if ("jpg".equals(exportType)) {
JPEGTranscoder t = new JPEGTranscoder();
t.addTranscodingHint(JPEGTranscoder.KEY_QUALITY, 1f);
OutputStream ostream = new FileOutputStream(expFile);
TranscoderOutput output = new TranscoderOutput(new FileOutputStream(expFile));
// Perform the transcoding.
t.transcode(new TranscoderInput(svgFile.toURI().toString()), output);
ostream.flush();
ostream.close();