lo-res output when converting from EPS using PerlMagick

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

lo-res output when converting from EPS using PerlMagick

Post by rlandis »

I have ghostscript installed, so when I use plain ImageMagick from the command line, I am able to convert a hi-res .eps to a .jpg, and the hi-res data is retained in the jpeg.

However, when I try to convert an .eps file to a .jpg using PerlMagick, the output is lo-res. I believe that PerlMagick is somehow using the lo-res preview that's stored in the .eps.

I am using the density command in both instances.

Any help or clues would be most appreciated!!!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Post the smallest amount of code possible that exhibits the problem and post a URL to your image. We need to reproduce the problem before we can suggest a fix.
rlandis

Post by rlandis »

Here is the pertinent part of my code.

Unfortunately, I don't have means to post an image at the moment.

Thanks for your help!

$image = Image::Magick->new;
$image->Read ($eps);
$image->Set(density=>'200x200');
$image->Write ($jpg);
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Set the image density before you read the EPS image.
rlandis

Post by rlandis »

This worked great. Thanks so much!!!!!
Post Reply