Thanks to all replies. With "on the fly", actually I meant forming 2-3 different size images before inserting them into the database upon getting the image via file upload, then serve these images in different pages.
I guess i'm gonna try to implement an AOLServer module using ImageMagick API to handle my needs. Thanks again to all. Haluk ----- Original Message ----- From: "Patrick Kelly" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002 8:06 PM Subject: Re: [AOLSERVER] ImageMagick > 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 > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com