throw new RuntimeException("No codec: " + contentType);
} // end of if
// ---
ImageUtils utils = ImageUtils.getInstance();
img = utils.
getRenderedImage(codec,
input.getInputStream());
if (img.getWidth() <= 240) {
StreamUtils.updateStream(input.getInputStream(), output, 8 * 1024);
return;
} // end of if
// ---
img = utils.
getScaledImage(img,
ImageUtils.SCALE_WIDTH_LIMIT_POLICY,
new float[] { 240f });
try {