Re: create multiple jpg thumbnails and use in a page

From: Date: Sat, 26 Mar 2005 11:56:16 +0000
Subject: Re: create multiple jpg thumbnails and use in a page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211614@lists.php.net to get a copy of this message
On Fri, 25 Mar 2005 21:32:44 -0500, Kevin Coyner <kevin@rustybear.com> wrote: > > Is there a way to create multiple jpg thumbnails from a series of larger > originals and use all of the on-the-fly generated thumbnails in a page > (without saving any of the thumbnails to the filesystem)? > > For example, I've got 5 full size jpg's in a directory, and I'd like to > list them on a page in table form as follows > > image1.jpg thumnbnail image image1 size datestamp > image2.jpg thumnbnail image image2 size datestamp > image3.jpg thumnbnail image image3 size datestamp > image4.jpg thumnbnail image image4 size datestamp > image5.jpg thumnbnail image image5 size datestamp > > From php.net, I've found plenty of examples of how to create thumbnails > from files and have done a couple successfully. My objective, however, > is to have a page dynamically create multiple thumbnails from full sized > images. I don't want to be creating and saving thumbnails to be used > later. > > Possible? If so, then please just a pointer in the right direction. > > Thanks, Kevin > -- For performance reasons, when I an image is uploaded at my site, a thumbnail is made right then and there. original goes into /images/ and the thumb goes into /images/tn/ with the exact same file name. Then I link as: <a href='/images/file.jpg'> <img src='/images/tn/file.jpg' alt='photo' border='0' /> </a> Just my shtei agorot. Dotan Cohen http://Song-Lirics.com/ http://Song-Liriks.com/

« previous php.general (#211614) next »