Link
Skip to main content

Running JDeli in Groovy

Table of contents

  1. Introduction
  2. Prerequisites
  3. Code Example

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"))
}

Why JDeli?

  • Support image formats such as AVIF, HEIC and JPEG XL (AVIF soon) that are not supported in Java.
  • Process images up to 3x faster than ImageIO and alternative Java image libraries.
  • Prevent JVM crashes caused by native code in other image libraries such as ImageIO.
  • Handle JPEG, PNG, TIFF image file formats fully in Java.
  • Keep your Image files secure as JDeli makes no calls to any external system or third party library.

Learn more about JDeli

Start Your Free Trial