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.

How to read EMF files in Java with JDeli

1 min read

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?

EMF files are 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

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

//Read Image (can also be OutputStream or byte array)
BufferedImage image = JDeli.read(emfFile);

Why use JDeli to read EMF files?

JDeli offers a range of advantages over ImageIO and alternatives, including:

  • prevents heap related JVM crashes
  • implements unsupported image formats
  • can convert EMF to SVG
  • improved read performance
  • supports threading
  • superior image scaling algorithms

Learn more about JDeli, or download it to try it yourself.

Did you know...

IDRsolutions offers a whole range of online file converters to convert PDF and Microsoft Excel, Word and Office Documents to HTML5, SVG or image formats?

It is free to use for single file conversions and also includes Developer links if you want to use our commercial software for bulk conversions. Find out more on this page

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.

How to read HEIC image files in Java with…

In this article, I will explain how to read HEIC files into Java as a BufferedImage. ImageIO does not read HEIC file types so...
Mark Stephens
1 min read

Leave a Reply

Your email address will not be published. Required fields are marked *

IDRsolutions Ltd 2020. All rights reserved.