[magick-users] converting PDFs to JPGs
zentara
zentara1 at sbcglobal.net
Mon Nov 3 13:33:08 PST 2008
On Mon, 3 Nov 2008 14:25:01 -0600
"James O'Donnell" <james at homegrowninvestments.com> wrote:
>Is is possible to use perl magick to convert PDF to a JPG?
>
>I am using the perl interface with imagemagick.
>
#!/usr/bin/perl
use warnings;
use strict;
use Image::Magick;
my $img = Image::Magick->new;
$img->Read('zzimage.pdf');
$img->set('magick'=> 'jpg');
$img->set('quality'=> 100, );
$img->set('compresion'=> 'LosslessJPEG' );
$img->Write(filename=>"$0.jpg");
__END__
zentara
--
I'm not really a human, but I play one on earth.
http://zentara.net/Remember_How_Lucky_You_Are.html
More information about the Magick-users
mailing list