What is the equivalent of this command line?
Posted: 2008-11-14T06:37:52-07:00
Hello,
I need the equivalent of the command-line:
but I can not get a good image quality output as command line when I use perl
I try this in perl:
Would you have an idea?
Thank you
I need the equivalent of the command-line:
Code: Select all
convert -geometry 1280x1024 -density 300x300 -quality 100 myfile.pdf myimage.jpeg
I try this in perl:
Code: Select all
#!/usr/bin/perl -w
use strict ;
use Image::Magick;
# Create an image
my $im = Image::Magick->new();
$im->Read('myfile.pdf');
$im->Resize(geometry=>'1280x1024',width=> '1280', height=>'1024') ;
$im->Write(filename => 'myimage.jpg', density => '300x300', quality => 100);
Thank you