Image processing in Java

JDeli is able to process image files or images in memory. Multiple processing operations can be applied together with the convert or process methods.

Process an image file

JDeli.convert(File inputFile, File outputFile, 
ImageProcessingOperations operations);

JDeli can also convert between different image file formats at the same time.

View Javadocs on JDeli.convert

Process a BufferedImage

image = JDeli.process(ImageProcessingOperations operations, 
BufferedImage image);

View Javadocs on JDeli.process

Full list of Processing operations

Click here for a full list of Image Processing Operations.

ImageProcessingOptions class

This class provides multiple image processing operations and an interface to add your own custom operations. Multiple operations can be added and will execute in that order.

Create an instance and pass into the JDeli process or convert methods.

Example 1 - Create a set of processing operations

ImageProcessingOperations operations = new ImageProcessingOperations();
operations.custom(new MyCustomProcess());
operations.rotate(90); //units are degrees

Example 2 - Chain a set of processing operations

ImageProcessingOperations operations = new ImageProcessingOperations()
.custom(new MyCustomProcess())

Example 3 - Implement a custom operation

private class MyCustomImageOperation implements ImageOperation {

    private Object myArgs;

    public MyCustomImageOperations(Object myArgs) {

        this.myArgs = myArgs;

    public BufferedImage apply(BufferedImage image) {

        //process code here
        return image;

ImageProcessingOperations operations = 
new ImageProcessingOperations(new MyCustomImageOperation(myArgs));

View Javadocs on process package

Still need help? Send us your questions.