Nirali Nirali is a Java Developer at IDR Solutions and also enjoys being part of the business development team. She is currently studying for her MSc Computing at De Montfort University.

Are you a Java Developer working with Image files?

Read and write images in Java with JDeli

How to read EMF files in Java with JDeli

34 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 file format 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
    //Read Image (can also be OutputStream or byte array)
    BufferedImage image = JDeli.read(emfFile);


Find out how to read and write images files in Java with JDeli:

Read: BufferedImage image = JDeli.read(streamOrFile);

Write: JDeli.write(myBufferedImage, OutputFormat.HEIC, outputStreamOrFile)

Learn more >>

Nirali Nirali is a Java Developer at IDR Solutions and also enjoys being part of the business development team. She is currently studying for her MSc Computing at De Montfort University.