Java Image Readers
JDeli includes a large number of Image Readers which can open a wide range of file formats as a Java BufferedImage. Just cut and paste the examples your code.
Getting started:
JDeli can automatically detect the image file format for any supported image file format. The image file can be accessed from a File, InputStream, or byte array.
BufferedImage image = JDeli.read(imageData); // byte[] imageData
BufferedImage image = JDeli.read(filePath); // File filePath
BufferedImage image = JDeli.read(inputStream); // InputStream inputStream
Note: For efficiency please pass your byte[] straight to our read method rather than wrapping in a ByteArrayInputStream
See the full Javadoc.
Currently, we support the following formats:
- BMP
- DCM
- EMF
- GIF
- HEIC/HEIF
- JPEG/JPG
- JPX/JP2
- PNG
- PSD
- SGI/RGB
- TIFF/TIF
- WEBP
- WMF