954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Thumbnailed images

Hi,
I am beginner in PHP and need to want to create a gallery of thumbnailed images so that user could load the original image (in separate window) after clicking on its thumbnail.
Is it possible to do it in PHP?
I'll be very grateful if you give me some tips on how to write this script.

vov4ik
Newbie Poster
16 posts since Jul 2006
Reputation Points: 10
Solved Threads: 0
 

If you have the thumbnail and image, it's just simple HTML.

<a href="image.jpg"><img src="thumbnail.jpg" alt="Image description"></a>


If you need to automagically generate the thumbnail, you might be looking at a third party thing (and are past my expertise.)

Puckdropper
Posting Pro
500 posts since Jul 2004
Reputation Points: 23
Solved Threads: 23
 

If you have the thumbnail and image, it's just simple HTML.

<a href="image.jpg"><img src="thumbnail.jpg" alt="Image description"></a>

If you need to automagically generate the thumbnail, you might be looking at a third party thing (and are past my expertise.)



Thanks Puckdropper,
I want to generate thumbnails from image files, so that clicking on thumbnail will load file in its full size. I don't have thumbnail image of the file. Does PHP have tools to manage image size ?

vov4ik
Newbie Poster
16 posts since Jul 2006
Reputation Points: 10
Solved Threads: 0
 

PHP has a standard (free) library designed for image manipulation - GDImage.
There are a number of tutorial scripts available for creating thumbnails from uploaded images. Have a trip through google and if you don't find anything suitable come back and I'll see what i can knock up for you.

Lafinboy
Junior Poster
172 posts since Jul 2004
Reputation Points: 16
Solved Threads: 7
 

See my other post at http://www.daniweb.com/techtalkforums/thread49390.html . It show you how to create thumbnail on the fly when you upload an image. Also show you alternative method by resizing image only when it loaded.

zippee
Posting Whiz in Training
294 posts since Jan 2005
Reputation Points: 10
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You