Are you sure you wanna do that "on the fly"?  It can be pretty
expensive to be resizing images for every page request.

>From aolServer I call a Perl script that uses the Image::Magick Perl
extension to resize images.  The best feature of this is that I can
make 4 resized versions while reading the image in once.  The Perl
script writes info to stdout about what it's done so that the
aolServer can do something about it.

    if { [catch {
        set pixel_data_feed [open "| /web/bin/resize-image $image_path 
2>>/web/log/image-resize-error.log" r]
    } err_msg] } {
        ...
    } else {
        while { [gets $pixel_data_feed line] >= 0 } {
            ...
        }
    }

This is all done from a scheduled proc so that I don't have to wait
for resizing after doing an upload.

On Thu, Jan 31, 2002 at 05:29:49PM +0200, Haluk Tunali wrote:
> Hello,
>
> Is there an AOLServer module for ImageMagick? Actually, the only
> functionality I need is resizing the images on the fly. Any other method of
> easily implementing this task will be greatly appreciated.
>
> Thank you all.
>
> Haluk

--
Patrick Kelly -- http://www.pk67.com/patrick.html

Reply via email to