CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate:
Converting image to WMF


New User

Nov 28, 2017, 2:50 AM

Post #1 of 3 (2308 views)
Converting image to WMF Can't Post

I need to convert some JPG images into WMF format. I'm attempting to do so using GD but am a bit confused. The Image::Base::GD man page says it can save in WMF format but when I try this..

$wmf = Image::Base::GD->new(-file => $file); 
$wmf->set(-file_format => 'wmf');

.. I get ..

Can't locate object method "wmf" via package "GD::Image"

I'm probably being stupid but if someone could point out where I'm going wrong (or an alternative command-line tool which will do the job - ImageMagick can read WMF but not write them) it'd be appreciated.

Veteran / Moderator

Nov 28, 2017, 8:59 AM

Post #2 of 3 (2304 views)
Re: [gaspode] Converting image to WMF [In reply to] Can't Post

I don't know this module, but I would assume you might need to install the Image::WMF module on your computer and to add the following line to your program:

use Image::WMF;

New User

Nov 28, 2017, 9:33 AM

Post #3 of 3 (2300 views)
Re: [Laurent_R] Converting image to WMF [In reply to] Can't Post

That was the first thing I tried. No joy :(


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives