Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / February 2006



Tip: Looking for answers? Try searching our database.

Formatting uploaded images

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mo@versioncreative.com - 15 Feb 2006 12:57 GMT
Hi All,

I have a perl script which enables users to upload a jpg file to my  
webserver from their browser. However, I'd like to reformat the  
uploaded jpeg to a certain pixel width and height so that it fits in  
with my webpage template (and also to avoid massive files being  
uploaded). Is there any way to do this in perl?

Thanks in advance,
Mo
Charlie Garrison - 15 Feb 2006 14:09 GMT
Good morning,

>I have a perl script which enables users to upload a jpg file to my  
>webserver from their browser. However, I'd like to reformat the  
>uploaded jpeg to a certain pixel width and height so that it fits in  
>with my webpage template (and also to avoid massive files being  
>uploaded). Is there any way to do this in perl?

Quite a few ways; one of the popular ones is ImageMagick.

Charlie

Signature

  Charlie Garrison  <garrison@zeta.org.au>
  PO Box 141, Windsor, NSW 2756, Australia

Brian D Foy - 15 Feb 2006 14:17 GMT
> I have a perl script which enables users to upload a jpg file to my  
> webserver from their browser. However, I'd like to reformat the  
> uploaded jpeg to a certain pixel width and height so that it fits in  
> with my webpage template (and also to avoid massive files being  
> uploaded). Is there any way to do this in perl?

There are many solutions, but I like Image::Magick. Although I sometimes
punt to the convert(1) script, the module has the utilities to resize
images. Curiously, the docs aren't in the module:

http://www.imagemagick.org/script/perl-magick.php
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.