Link

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.

It can open files with the following extensions: BMP, DCM, EMF, GIF, HEIC, HEIF, JPEG, JPG, JPX, JP2, PNG, PSD, SGI, RGB, TIFF, TIF, WEBP, WMF.

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.