Link

JPG Converter

JDeli is able to read and write images as JPG files, giving a complete JPG converter between JPG file format and lots of other image file formats.

JDeli can do this in ONE step with the convert method or separately read or write the JPG image if you want to process the image in Java.

Convert images to JPG from Command Line or another language

java -jar jdeli.jar --convert jpg "inputFileOrDir" "outputDir"

Convert into JPG or from a JPG image file in Java

JDeli.convert(File inFile, File outFile);

JDeli.convert(InputStream inFile, OutputStream outfile, String format);

byte[] outputData=JDeli.convert(byte[] inputData, String format);

An additional set of methods allow values to be passed in which can give more control over conversion, depending on the image formats being converted (ie different image compression options).

View Javadocs on JDeli.convert

Multiple steps method for converting to or from JPG file format

  1. Read Image Formats with JDeli…
  2. Process image
  3. Write Image Formats with JDeli…

Still need help? Send us your questions.