Re: create multiple jpg thumbnails and use in a page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 25 Mar 2005 21:32:44 -0500, Kevin Coyner <kevin@xxxxxxxxxxxxx> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux