Hi!
We are using latest ImageMagick-6.8.1-9-Q16-x86-dll.exe with connection of libwmf and JMagick on Java Swing application. But we experienced that some of WMF images on Windows XP SP3 x86 do not work.
We are adding also Visual C++ 2010 Redistributable Package (x86) patches to the system.
The exception, which JMagick native method (Imagemagick C++ method) is giving for us is: magick.MagickException: No image to scale.
magick.MagickException: No image to scale
at magick.MagickImage.scaleImage(Native Method)
at se.zert.util.MagickIcon.init(Unknown Source)
at se.zert.util.MagickIcon.init(Unknown Source)
at se.zert.util.MagickIcon.<init>(Unknown Source)
at se.zert.infologic.ui.plugin.image.ImageCanvas$LoadThread.run(Unknown Source)
We think issue is related to Imagemagick because we had the same exception also on Windows Server 2008 R2 (x64) previously, but switching to ImageMagick-6.8.1-3-Q16 version resolved Windows Server 2008 R2 (x64) trouble, but trouble on Windows XP SP3 x86 with some WMF images remains. So we beleive the development process is real close to resolving the issue.
I'll attach all the files you might be interested in via https://docs.google.com/file/d/0B27YYRO ... JiRGM/edit . It includes working wmf images and not working (only on Windows XP SP3 x86) images and all the additional libraries.
some WMF images on Windows XP SP3 (x86) do not work
some WMF images on Windows XP SP3 (x86) do not work
Last edited by OstapKr on 2013-01-16T15:23:05-07:00, edited 3 times in total.
Re: some WMF images on Windows XP SP3 (x86) do not work
Post a URL to your images so we can download them and reproduce the problem. Once we trace the the problem, we will report back here.
Re: some WMF images on Windows XP SP3 (x86) do not work
Sorry, here they are in the compressed folder: https://docs.google.com/file/d/0B27YYRO ... JiRGM/edit or http://depositfiles.com/files/9kzeznk18
Re: some WMF images on Windows XP SP3 (x86) do not work
There may be a compatibility issue with VisualStudio 2010 and Windows XP SP3. Download http://www.imagemagick.org/download/con ... lus.tar.gz and build the emfplus.exe utility. Replace it in the ImageMagick folder (typically @ c:/Program Files/ImageMagick-6.8.1-Q16). See if that helps.
Re: some WMF images on Windows XP SP3 (x86) do not work
Thanks. But:
We've built emfplus.exe with VisualStudio 2010 and Windows XP SP3. No luck - not working still. Should we try on VisualStudio 2008?
We've built emfplus.exe with VisualStudio 2010 and Windows XP SP3. No luck - not working still. Should we try on VisualStudio 2008?
-
- Posts: 1
- Joined: 2013-09-10T23:43:46-07:00
- Authentication code: 6789
Re: some WMF images on Windows XP SP3 (x86) do not work
hi,
I am getting following error. Pls help to resolve.
I am running ImageMagick inside wine and trying to convert an emf into png.
wine convert.exe two.emf tone.png
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
err:gdiplus:convert_unit cannot convert UnitWorld
err:gdiplus:convert_unit cannot convert UnitWorld
ERROR: problem writing output file C:/users/ubuntu/Temp/magick-36s6iCXgHxkD1b.
convert.exe: Delegate failed `emfplus.exe -format png -dpi %x\x%y "%i" "%o"' @ error/delegate.c/InvokeDelegate/1065.
convert.exe: unable to open image `C:/users/ubuntu/Temp/magick-36J6dXW2G5QA1K': No such file or directory @ error/blob.c/OpenBlob/2643.
convert.exe: unable to open file `C:/users/ubuntu/Temp/magick-36J6dXW2G5QA1K': No such file or directory @ error/constitute.c/ReadImage/591.
convert.exe: no images defined `tone.png' @ error/convert.c/ConvertImageCommand/3108.
I am getting following error. Pls help to resolve.
I am running ImageMagick inside wine and trying to convert an emf into png.
wine convert.exe two.emf tone.png
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
err:gdiplus:convert_unit cannot convert UnitWorld
err:gdiplus:convert_unit cannot convert UnitWorld
ERROR: problem writing output file C:/users/ubuntu/Temp/magick-36s6iCXgHxkD1b.
convert.exe: Delegate failed `emfplus.exe -format png -dpi %x\x%y "%i" "%o"' @ error/delegate.c/InvokeDelegate/1065.
convert.exe: unable to open image `C:/users/ubuntu/Temp/magick-36J6dXW2G5QA1K': No such file or directory @ error/blob.c/OpenBlob/2643.
convert.exe: unable to open file `C:/users/ubuntu/Temp/magick-36J6dXW2G5QA1K': No such file or directory @ error/constitute.c/ReadImage/591.
convert.exe: no images defined `tone.png' @ error/convert.c/ConvertImageCommand/3108.