Opinions about on the fly image resizing

2008-09-02 Thread Aron Szanitter
I created a site and decided that in order to show image thumbnails on list pages I do not downsize images and store them phisicaly on server rather have only one larger (max 800x800px) image file which I read into memory resize it to thumbnail size and write it to the browser with the cfimage

Re: Opinions about on the fly image resizing

2008-09-02 Thread Justin Scott
Does anybody use this way of image processing instead of storing thumbnail files on server or it is really not a best practice? Could I have somehow alt text on my images? Any other pros or cons I haven't mentioned? ALT text would be controlled by the HTML calling the image, not the script

Re: Opinions about on the fly image resizing

2008-09-02 Thread Claude Schneegans
Any oppinion is appreciated. Well, IMO, the big idea of thumbnails is to show many images roughly and in the same page, so that the user can choose only the one in want in large format. Having to read and downsize 10 or 20 or more images is not really compatible with this purpose. The images

Re: Opinions about on the fly image resizing

2008-09-02 Thread Azadi Saryev
i totally agree with Claude: unless there is a better reason to not have thumbnail-sized images, you should not tax your server with all the cfimage resizing - it is a very memory-intensive operation. i use this on-the-fly functionality on one of the sites to add a watermark to a large-size

Re: Opinions about on the fly image resizing

2008-09-02 Thread Barney Boisvert
You can get the best of both worlds very easily. Create an empty directory to store all your thumbnails, and then write them all as /thumbs/IMAGEID-WIDTH-HEIGHT.jpg into your pages. Then use mod_rewrite to do a file existence check. If it exists, let Apache serve it out, otherwise have

Re: Opinions about on the fly image resizing

2008-09-02 Thread Claude Schneegans
you only need wipe that directory clean and everything will start being regenerated. Very brilliant indeed. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial