Link

Command Line API

JDeli includes a simple API. JDeli is written in Java but can be used from other languages or command line.

How to use JDeli from Command Line or any language

JDeli takes a set of commands which allow easy access to JDeli features. This list will appear if no commands are used or using the help command as follows.

java -jar jdeli.jar --help

1

Examples to Compress PNG files

//compress png file and save as "pdfFile_compressed.png"
java -jar jdeli.jar --compresspng "pdfFile.png"

Examples to Convert image formats

//Convert all files in the input folder to png files
java -jar jdeli.jar --convert "png" "input/dir/" "output/dir"

//Convert the specified file to png files
java -jar jdeli.jar --convert "png" "pdfFile.jpg" "output/dir"

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.

Start Your Free Trial