EMF files render as blank white
Posted: 2009-10-19T09:48:12-07:00
Hello good people,
To summarize, I'm having trouble getting IM to render EMF files successfully. They seem to load okay, rendering with the correct dimensions, however they only draw as entirely white.
I'm successfully using IM to generate .jpg thumbnails of various other formats, on a windows 2003 server running php 5.3 + iMagick. I believe it to be an issue with IM itself, and not the iMagick extension, as conversion also fails when run from command line.
Copying an EMF to my IM installation, and running this command:
convert C:\ImageMagick\LPCA_01216.emf C:\ImageMagick\LPCA_01216.jpg
Gives me a JPG of the correct dimensions, but as entirely blank white. Here are two example results of the conversion:
http://redsavage.com/files/LPCA_01216.emf
http://redsavage.com/files/LPCA_01216.jpg
http://redsavage.com/files/LPCA_01245.emf
http://redsavage.com/files/LPCA_01245.jpg
When working with JPG, GIF, PNG, even WMF - everything works fine. The trouble seems only with EMF files.
Has anyone run into this before, or am I doing something silly? Any assistance or advice would be truly appreciated. I know the folks around here are more linux oriented, but for this project, we really need EMF support, so a windows server it's got to be. I'm really still marveling at the power this library offers. Thanks much for making this.
Best regards and many thanks,
-Jared
To summarize, I'm having trouble getting IM to render EMF files successfully. They seem to load okay, rendering with the correct dimensions, however they only draw as entirely white.
I'm successfully using IM to generate .jpg thumbnails of various other formats, on a windows 2003 server running php 5.3 + iMagick. I believe it to be an issue with IM itself, and not the iMagick extension, as conversion also fails when run from command line.
Copying an EMF to my IM installation, and running this command:
convert C:\ImageMagick\LPCA_01216.emf C:\ImageMagick\LPCA_01216.jpg
Gives me a JPG of the correct dimensions, but as entirely blank white. Here are two example results of the conversion:
http://redsavage.com/files/LPCA_01216.emf
http://redsavage.com/files/LPCA_01216.jpg
http://redsavage.com/files/LPCA_01245.emf
http://redsavage.com/files/LPCA_01245.jpg
When working with JPG, GIF, PNG, even WMF - everything works fine. The trouble seems only with EMF files.
Has anyone run into this before, or am I doing something silly? Any assistance or advice would be truly appreciated. I know the folks around here are more linux oriented, but for this project, we really need EMF support, so a windows server it's got to be. I'm really still marveling at the power this library offers. Thanks much for making this.
Best regards and many thanks,
-Jared