Page 2 of 2

Re: Converting EMF to JPG

Posted: 2012-03-26T19:42:10-07:00
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.

Re: Converting EMF to JPG

Posted: 2012-03-27T19:07:48-07:00
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.

Re: Converting EMF to JPG

Posted: 2016-05-10T13:58:50-07:00
by saladi
For future visitors, this can be done using libreoffice:

Code: Select all

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