Link

Custom Operation

What does it do?

The custom operation will allow you to add your own custom image processing operation code.

Example to apply your custom image processing operation

private class MyCustomImageOperation implements ImageOperation {

    private Object myArgs;

    public MyCustomImageOperations(Object myArgs) {

        this.myArgs = myArgs;
    }

    @Override
    public BufferedImage apply(BufferedImage image) {

        //process code here
        return image;
    }
}
File input = new File("path\to\file");
File output = new File("path\to\output rotated file");

ImageProcessingOperations operations = new ImageProcessingOperations();
operations.custom(new MyCustomImageOperations());

//you can chain other operations here like rotate, blur, etc 

JDeli.convert(input,output,operations);

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