Here is some code to resize images using Image::Magick:
require Image::Magick; my $img = new Image::Magick; $img->Read($filepath); $img->Scale("640>"); $j->Write($filepath2);
For the Scale, you can specify something like "640x480" which makes the image exactly those dimensions, or "640>" which states, make it no more than 640 wide, but don't change the aspect ratio and don't enlage. If you want to base the resizing off the hieght, you can do "x480>".
This can be done with CGI, but you may have trouble uploading a bunch of files at once, without resorting to zipping or tarring, or AJAX.
Maybe you can offer her a comand-line or dropplet option.
Ted Young
($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)In reply to Re: Image uploading and server-side resizing
by TedYoung
in thread Image uploading and server-side resizing
by ptum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |