ResampleOp resampleOp = new ResampleOp(size, (size * image.getHeight())
/ image.getWidth());
resampleOp.setFilter(ResampleFilters.getLanczos3Filter());
resampleOp.setUnsharpenMask(AdvancedResizeOp.UnsharpenMask.Normal);
image = resampleOp.filter(image, null);
ImageIO.write(image, getExtension(f.getName()), destFile);
}
private static int getRequiredSize(String originalSize, String resFolder,