[magick-users] How to set attribute in PerlMagick about -density option in ImageMagick ?
신하얀
white at gaia3d.com
Sat Nov 15 02:27:57 PST 2008
Hello, I have some problem using Perl interface.
* my environment:
Perl 5.8.8, ImageMagick 6.1.8, PerlMagick6.4 (I couldn’t find PerlMagick
6.1.8 package on the web)
I want to convert postscript Image file to gif file.
Here, when I use ‘convert’ of Imagemagick, it works good.
convert -crop 0x0 -rotate -90 -density 110 $ps_file $gif_file
I want to do same job using perl script as below but, image size dosen’t
same.
Ps2gif.pl
------------------------------------
Use Image::Magick;
my $image = Image::Magick->new();
$image->Read($ps_file);
$image->Rotate(degrees=>-90);
$image->Trim();
$image->Set(units=>1); <-- This code didn’ work !!!
$image->Set(density=>110); <---This code didn’t work!!!!
$image->Write($gif_file);
Please, let me know solve this problem.
Shin,Hayan
Gaia 3D , Inc.
Tel. : +82 (2) 3397-3475
Fax. : +82 (2) 3397-3478
E-Mail : <mailto:white at gaia3d.com> white at gaia3d.com
Home : <http://www.gaia3d.com/> http://www.gaia3d.com
More information about the Magick-users
mailing list