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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



gaspode
New User

Nov 28, 2017, 2:50 AM

Post #1 of 3 (460 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..


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


.. I get ..

Quote
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.


Laurent_R
Veteran / Moderator

Nov 28, 2017, 8:59 AM

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

Hi,
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:

Code
use Image::WMF;



gaspode
New User

Nov 28, 2017, 9:33 AM

Post #3 of 3 (452 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