if (!params.containsName(ParameterNames.MAX_IMAGE_SIZE)) {
outputFrame(os, cvt.convert(ops[0], null), getFileFormat(), params);
} else {
RenderedOp[] rgb = new RenderedOp[1];
rgb[0] = cvt.convert(ops[0], null);
outputFrame(os, rgb[0], getFileFormat(), params);
int maxImageSize = params.getInteger(ParameterNames.MAX_IMAGE_SIZE);
long length = os.getSize();
if (LOGGER.isDebugEnabled()) {