Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Imagemagick on linux to convert EMF to PNG

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?

like image 722
abhinav Avatar asked Feb 25 '13 09:02

abhinav


2 Answers

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

libreoffice --headless --convert-to png *.emf
like image 177
jgpATs2w Avatar answered Sep 30 '22 02:09

jgpATs2w


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).

like image 21
aditsu quit because SE is EVIL Avatar answered Sep 30 '22 01:09

aditsu quit because SE is EVIL