PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
In your command line example the geometry, density and quality are specified before the PDF file is read. But in your Perl example you don't specify them until you write the file. I don't know how to do this in Perl but you need to specify them before you read the PDF.
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
#!/usr/bin/perl -w
use strict ;
use Image::Magick;
# Create an image
my $im = Image::Magick->new();
$im->Set(density=>'300x300');
$im->Read('myfile.pdf');
$im->Resize(geometry=>'1280x1024',width=> '1280', height=>'1024') ;
$im->Write(filename => 'myimage.jpg',quality => 100);
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.