Page 2 of 3
Re: EMF+ support on Windows
Posted: 2012-02-14T09:01:59-07:00
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.
Re: EMF+ support on Windows
Posted: 2012-02-14T09:18:22-07:00
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.
Re: EMF+ support on Windows
Posted: 2012-02-14T09:42:01-07:00
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.
Re: EMF+ support on Windows
Posted: 2012-02-14T10:00:04-07:00
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?
Re: EMF+ support on Windows
Posted: 2012-02-14T13:31:24-07:00
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.
Re: EMF+ support on Windows
Posted: 2012-02-14T14:04:42-07:00
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.)
Re: EMF+ support on Windows
Posted: 2012-02-16T08:51:27-07:00
by tsdineen
When do you expect the emf delegate to be changed over?
Re: EMF+ support on Windows
Posted: 2012-02-24T08:26:15-07:00
by tsdineen
Any status on this?
Re: EMF+ support on Windows
Posted: 2012-02-24T08:39:19-07:00
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.
Re: EMF+ support on Windows
Posted: 2012-02-24T09:49:32-07:00
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.
Re: EMF+ support on Windows
Posted: 2012-02-24T09:52:58-07:00
by tsdineen
I understand, complete.
Thanks, for your work on this.
Re: EMF+ support on Windows
Posted: 2012-03-05T08:19:10-07:00
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,
Re: EMF+ support on Windows
Posted: 2012-03-05T10:08:29-07:00
by magick
Re: EMF+ support on Windows
Posted: 2012-03-05T11:58:00-07:00
by tsdineen
Should this be 6.7.5-9 or 6.7.5-10? I only see the latter.
Thanks,
Re: EMF+ support on Windows
Posted: 2012-03-05T12:21:36-07:00
by magick
Try now. Use the -10 release.