Create a Thumbnail

What does it do?

Create a copy of the image with the specified dimensions. This operation uses a scaling routine designed to produce best output when the specified dimensions are smaller than the original.

Example in Java to scale an image

File input = new File("path\to\file");
File output = new File("path\to\output rotated file");

ImageProcessingOperations operations = new ImageProcessingOperations();
operations.thumbnail(64, 64); 
//you can chain other operations here like rotate, blur, etc 


Click here for a full list of Image Processing Operations and more general information on Image processing with JDeli.