Resize to Width

What does it do?

The resize to Width operation will rescale the image so that it is a set number of pixels wide.

Example in Java to resize an image

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

ImageProcessingOperations operations = new ImageProcessingOperations();
operations.resizeToWidth(100); // make image 100 pixels wide 
//you can chain other operations here like scale, blur, etc 


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

Still need help? Send us your questions.