convert eps to jpg
Posted: 2007-03-24T18:54:30-07:00
Hi all,
I'm new to perlmagick and also programming. This is my first time to program perl.
I got a problem that I need to convert all eps files in a specific folder (in folder) to jpg files and put them in another folder (out folder).
How can I achieve that ?? I have tried sth like this: but it didnt work ^.^
use Image::Magick;
my $x;
my $logo = new Image::Magick;
$x = $logo->Read("test.eps");
warn $x if "$x";
$logo->Set('quality'=>100) ;
$logo->Set(magick => 'jpeg');
$x = $logo->Write("test.jpg");
warn $x if "$x";
print "Done";
I'm new to perlmagick and also programming. This is my first time to program perl.
I got a problem that I need to convert all eps files in a specific folder (in folder) to jpg files and put them in another folder (out folder).
How can I achieve that ?? I have tried sth like this: but it didnt work ^.^
use Image::Magick;
my $x;
my $logo = new Image::Magick;
$x = $logo->Read("test.eps");
warn $x if "$x";
$logo->Set('quality'=>100) ;
$logo->Set(magick => 'jpeg');
$x = $logo->Write("test.jpg");
warn $x if "$x";
print "Done";