Converting EMF to JPG

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting EMF to JPG

Post by fmw42 »

why does your verbose info for the EMF file have png properties. Perhaps your EMF reader is reading the png size and IM does not change that. Try adding -strip to your convert to remove the png properties.

convert -density XX -units pixelsperinch image.emf -strip result.jpg where XX=72 or less

or

convert -strip -density XX -units pixelsperinch image.emf result.jpg where XX=72 or less


or if your emf has an imbedded png image, then try

convert image.emf -strip -density XX -units pixelsperinch result.jpg


See if one of those will work.
Dahak
Posts: 10
Joined: 2012-03-24T17:16:45-07:00
Authentication code: 8675308

Re: Converting EMF to JPG

Post by Dahak »

fmw42 wrote:why does your verbose info for the EMF file have png properties. Perhaps your EMF reader is reading the png size and IM does not change that.
I hadn't noticed that. At a guess I'd say it had an embedded image in there.

There are legends on the map, although they wouldn't be that large.
Try adding -strip to your convert to remove the png properties.

convert -density XX -units pixelsperinch image.emf -strip result.jpg where XX=72 or less

or

convert -strip -density XX -units pixelsperinch image.emf result.jpg where XX=72 or less

or if your emf has an imbedded png image, then try

convert image.emf -strip -density XX -units pixelsperinch result.jpg

See if one of those will work.
Tried all three, didn't seem to do much.

I'll play around with it some more, tonight.
saladi
Posts: 1
Joined: 2016-05-10T13:57:05-07:00
Authentication code: 1151

Re: Converting EMF to JPG

Post by saladi »

For future visitors, this can be done using libreoffice:

Code: Select all

libreoffice --headless --convert-to jpg *.emf
Post Reply