You are here: Re: [PHP] create multiple jpg thumbnails and use in a page « PHP « IT news, forums, messages
Re: [PHP] create multiple jpg thumbnails and use in a page

Posted by Dotan Cohen on 03/26/05 13:56

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация