* and try again.
*/
quality = params.getInteger(ParameterNames.MINIMUM_JPEG_QUALITY) / 100F;
Dimension d = new Dimension(src.getWidth(), src.getHeight());
int maxImageSize = params.getInteger(ParameterNames.MAX_IMAGE_SIZE);
Dimension newD = cvt.calcScale(d, lastLength, maxImageSize);
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("Scaling image to width " + newD.width);
}
RenderedOp[] img = new RenderedOp[1];
img[0] = src;