EMF+ support on Windows

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EMF+ support on Windows

Post by magick »

From the command line, try
  • convert emfplus:myimage.emf myimage.png
Does that work? If so, we'll need to distinquish EMF from EMF+ images, perhaps by a magic number.
tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

Re: EMF+ support on Windows

Post by tsdineen »

Here is what I am seeing:

U:\tmp\TESTHELPS\TH088480>sdswhence convert
C:\Program Files\ImageMagick-6.7.5-Q16\convert.EXE

U:\tmp\TESTHELPS\TH088480>convert emfplus:EMFPlus.emf EMFPlus.png
convert.exe: unable to open module file `C:\Program Files\ImageMagick-6.7.5-Q16\modules\coders\IM_MOD_RL_EMFPLUS_.dll': No such file or directory @ warning/module.c/GetMagickModulePath/683.
convert.exe: no decode delegate for this image format `C:/DOCUME~1/TIDINE/LOCALS~1/Temp/magick-Ow5NvWXg' @ error/constitute.c/ReadImage/566.
convert.exe: missing an image filename `EMFPlus.png' @ error/convert.c/ConvertImageCommand/3016.

The tool I link ImageMagick to, doesn't know of format, so I won't be able to force a format. Also, I believe the emfplus tools works on all EMF formats, so it could replace the legecy delegate.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EMF+ support on Windows

Post by magick »

Looks like we'll need to turn emfplus.cpp into a library and call it from the EMF coder. We'll try to get the patch into the next point release of ImageMagick.
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: EMF+ support on Windows

Post by Drarakel »

tsdineen wrote:Also, I believe the emfplus tools works on all EMF formats, so it could replace the legecy delegate.
That would be great! I had some problems with EMF and also WMF files in ImageMagick, and usually used the Windows Picture Viewer to decode these files. (I don't know if these are 'normal' EMF files, or 'dual', as you call it, or something else.) Using your tool, I'm getting now the same result as with the Windows viewer. Thanks for that! :)

Shall I provide some files that showed the problems with the old delegate?
tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

Re: EMF+ support on Windows

Post by tsdineen »

My tool supports wmf as well, so I have files. It looks like the emfplus tool will convert them to bmp as well. If there are others that don't work with the emfplus tool, I might be able to help you, but I try to stay away from knowing too much about a given format, as the tool which uses ImageMagick isn't my primary support.
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: EMF+ support on Windows

Post by Drarakel »

OK. I think I'll wait for the next IM release versions and if there are still problems with these files, I can make a new thread.
(I don't use this file type much. But I have one WMF that ImageMagick can't read and most of the EMFs get a bit distorted with the old EMF reader - I think, mainly as IM doesn't know the right density.)
tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

Re: EMF+ support on Windows

Post by tsdineen »

When do you expect the emf delegate to be changed over?
tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

Re: EMF+ support on Windows

Post by tsdineen »

Any status on this?
tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

Re: EMF+ support on Windows

Post by tsdineen »

One additional note: I have some wmf files that aren't readable with the current version of the Windows IMDisplay. The emfplus tool reads EMF, EMF+ and WMF files correctly. Either replacing the internal code or changing these formats to use the emfplus delegate would help, greatly.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EMF+ support on Windows

Post by magick »

We're working on it. We're a small development team with a large user base with lots of questions and enhancement requests.
tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

Re: EMF+ support on Windows

Post by tsdineen »

I understand, complete.

Thanks, for your work on this.
tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

Re: EMF+ support on Windows

Post by tsdineen »

It looks like the EMF+ issue was fixed with the 6.7.5-7 release. I am still seeing issues with my WMF file which is fixed, using the emfplus tool. You should be able to see the file in about 30 minutes, here.

ftp://ftp.sas.com/outgoing/ImageMagick/ngs0201w.wmf

Thanks,
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EMF+ support on Windows

Post by magick »

tsdineen
Posts: 81
Joined: 2007-01-18T08:45:31-07:00

Re: EMF+ support on Windows

Post by tsdineen »

Should this be 6.7.5-9 or 6.7.5-10? I only see the latter.

Thanks,
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: EMF+ support on Windows

Post by magick »

Try now. Use the -10 release.
Post Reply