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?

share|improve this question
up vote 4 down vote accepted

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

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

share|improve this answer

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

libreoffice --headless --convert-to png *.emf
share|improve this answer

Another way is to use inkscape:

inkscape -e file.png source.emf

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

share|improve this answer
1  
Not imagemagick, but it works. Can also do svg, (e)ps, pdf and LaTeX. – AstroFloyd Jan 23 '17 at 10:22
    
No, it doesn't accept a metafile as input – Arnaud Weil Apr 25 '17 at 12:30
    
This worked for me in spite of @ArnaudWeil's comment. – Nathan Musoke Jul 17 '17 at 4:22
    
Maybe MS does put whatever they want into EMF... "** (inkscape:10912): WARNING **: Specified document image5.emf cannot be opened (does not exist or not a valid SVG file)" – Fabian Blechschmidt Dec 17 '17 at 19:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.