Running JDeli in Groovy
Table of contents
Introduction
The following tutorial shows you how to use JDeli in Groovy.
Prerequisites
Code Example
This code snippet uses JPG to PNG conversion as an example. This example uses Maven as the build tool.
import com.idrsolutions.image.JDeli
import java.awt.image.BufferedImage
static void main(String[] args) {
BufferedImage bufferedImage = JDeli.read(new File("jpgFile.jpg"))
JDeli.write(bufferedImage, "png", new File("pngFile.png"))
}