Link
Skip to main content

Read image files

You can easily replace ImageIO by adding the JDeli jar to your Java modulepath and then refactoring to use the JDeli methods.

JDeli works the same way as ImageIO

BufferedImage image = ImageIO.read(imageFile);

becomes:

BufferedImage image = JDeli.read(imageFile);

The read method can take either a File, Input stream, or byte array as a parameter and returns a BufferedImage.

The supported input formats are:

Alternatively, if you do not want to change your code you can always use our ImageIO Plugin which does not require any refactoring.

The full Javadoc can be viewed here.


Get started with JDeli in 3 steps

  1. Fill in the form to download the trial jar →
  2. Copy the code snippets as instructed on the next page
  3. Build your solution using our docs

Learn more about JDeli

Start Your Free Trial