12

I am trying to convert an image in EMF format to PNG using Imagemagick on Red Hat Enterprise Linux Server release 5.5 (Tikanga), but I am running into the following error:

convert: no decode delegate for this image format `thumbnail.emf' @ error/constitute.c/ReadImage/550. convert: no images defined `1.png' @ error/convert.c/ConvertImageCommand/3068.

How might I fix this?

saladi
  • 3,103
  • 6
  • 36
  • 61
abhinav
  • 1,252
  • 10
  • 27
  • Try libreoffice first and then imagemagick as I wrote in [this answer](https://stackoverflow.com/a/72405526/3552975). – Lerner Zhang May 31 '22 at 15:15

3 Answers3

17

Install libreoffice and run this command on the folder where your emf files are located:

libreoffice --headless --convert-to png *.emf
eleuteron
  • 1,863
  • 20
  • 26
11

Another way is to use inkscape:

inkscape -o file.png source.emf

See inkscape --help for more export options (area to export, dpi, image resolution, background color etc).

0xced
  • 25,219
  • 10
  • 103
  • 255
5

According to this page: http://www.imagemagick.org/script/formats.php

EMF R Microsoft Enhanced Metafile (32-bit) Only available under Microsoft Windows.

Bonzo
  • 5,169
  • 1
  • 19
  • 27