Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Converting PNG to JPEG

by cmilfo (Hermit)
on Aug 22, 2002 at 17:54 UTC ( [id://192107]=note: print w/replies, xml ) Need Help??


in reply to Converting PNG to JPEG

Unfortunately, I am not able to test this at the moment. But, this *should* work.
use Image::Magick; my $rc; my $img = Image::Magick->new(); $rc = $img->Read('file.png'); die "$rc\n" if $rc; $rc = $img->Write('file.jpeg'); die "$rc\n" if $rc;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://192107]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found