Re: [ph-perl] getimagesize

Top Page
Author: Sherwin Daganato
Date:  
To: ph-perl
Subject: Re: [ph-perl] getimagesize
On Tue, Dec 10, 2002 at 11:41:34AM +0100, -Els Van Heddegem- wrote:

Download Image::Magick from CPAN[1]

[1] http://search.cpan.org/author/JCRISTY/PerlMagick-5.51/

> How can I read the width and height of an automatically uploaded image?


Use the Ping method of Image::Magick.
e.g.

use Image::Magick;
my $image = new Image::Magick;
my ($width, $height, $size, $format) = $image->Ping('/path/to/image');

> And how can I reduce them?


See the Resize method of Image::Magick.

HTH
--
$_=q:; # SHERWIN #
70;72;69;6e;74;20;
27;4a;75;73;74;20;
61;6e;6f;74;68;65;
72;20;50;65;72;6c;
20;6e;6f;76;69;63;
65;27;:;;s=~?(..);
?=pack q$C$,hex$1;
;;;=egg;;;;eval;;;
_______________________________________________
ph-perl mailing list
ph-perl@???
http://lists.q-linux.com/mailman/listinfo/ph-perl