There are other, lighter weight, solutions too. GD, and Imager come to mind.

Take a look at http://search.cpan.org/modlist/Graphics

Kindest Regards,

--
Bill Stephenson
ezInvoice.com
417-546-8390


On Sep 3, 2006, at 2:53 AM, Olivier Laloux wrote:

Sara,

You can use ImageMagick and the Perl API on this PerlMagick.

With this you'll have the 2 following possibilities:

- resize automatically the picture for the user
- detect the picture sizes and warn your user

Any further information can be found @
http://www.imagemagick.org/script/perl-magick.php

Personally I used 2 years ago the first possibility.

I hope this helps.

Kind regards,

Olivier



-----Message d'origine-----
De : Sara [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 3 septembre 2006 6:05
À : beginners-cgi@perl.org
Objet : Limiting Images Dimensions?

I saw in PHP scripts where you can upload avatars within a range of
dimensions like 100 x 100. If user tries
to upload an image with a size bigger than 100 x 100 it gets a message to
resize and re-upload.

How it can be achieved in CGI scripts? I have made numerous scripts for
uploading, limiting upload size, formats, etc
but this problem is encountered first time.

Any help?

Sara.


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>





--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to