Amy Pearson Amy is a Java developer and member of the support team. Her main technical interests are JavaFX and Cloud. Out of hours she enjoys gaming and Virtual reality.

How to read EMF files in Java (Tutorial)

38 sec read

EMF icon

In this post, I will show you how to read EMF files into Java as a BufferedImage. This converts the EMF file into a bitmap, so you may also be interested in our post on How to convert EMF files to SVG in Java.

What is EMF file format?

EMF iconEMF (Enhanced Meta file) is a public vector image format invented by Microsoft and very popular on the Windows platform. You can learn more about them in our post “What are the WMF and EMF image file formats?”.

JDeli can read EMF files directly into Java as a Buffered Image. This can be manipulated in Java and saved out to another file format.

The filename extension for EMF files is: .emf

How to read an EMF image in Java with JDeli

  1. Add JDeli to your class or module path. (download the trial jar).
  2. Read the EMF image into a BufferedImage

and the Java code to read EMF files in JDeli…



Are you a Java Developer working with Image files?

Why do developers choose JDeli over free alternatives?

  1. Works with newer image formats such as AVIF, HEIC, JPEG XL, WEBP
  2. Better support than alternatives for JPEG, PNG, TIFF.
  3. Prevent JVM crashes caused by native code in other image libraries
Amy Pearson Amy is a Java developer and member of the support team. Her main technical interests are JavaFX and Cloud. Out of hours she enjoys gaming and Virtual reality.