convert eps to jpg

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
12693065

convert eps to jpg

Post by 12693065 »

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";
Post Reply