Link
Skip to main content

how to read Embedded Thumbnails

What does it do?

Read the embedded thumbnail inside an image, if present and output it as a bufferedImage.

Read an Embedded Thumbnail in Java

JDeli.readEmbeddedThumbnail(imageFile);

JDeli.readEmbeddedThumbnail(imageStream);

JDeli.readEmbeddedThumbnail(imageByteArray);

Note: For efficiency please pass your byte[] straight to our read method rather than wrapping in a ByteArrayInputStream
See the full Javadoc.


Why JDeli?

  • Support image formats such as AVIF, HEIC and JPEG XL 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.

Learn more about JDeli

Start Your Free Trial