[magick-users] converting PDFs to JPGs
Fred Weinhaus
fmw at alink.net
Mon Nov 3 14:19:07 PST 2008
I am not a PerlMagick expert, but I believe that there may be some
typos (not sure about the comma after 100, but pretty sure
compression is not spelled correctly)
$img->set('quality'=> '100' );
$img->set('compression'=> 'LosslessJPEG' );
>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__
>
More information about the Magick-users
mailing list