944,004 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1649
  • PHP RSS
Jul 15th, 2006
0

Thumbnailed images

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vov4ik is offline Offline
16 posts
since Jul 2006
Jul 15th, 2006
0

Re: Thumbnailed images

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

PHP Syntax (Toggle Plain Text)
  1. <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.)
Reputation Points: 23
Solved Threads: 23
Posting Pro in Training
Puckdropper is offline Offline
494 posts
since Jul 2004
Jul 15th, 2006
0

Re: Thumbnailed images

Quote originally posted by Puckdropper ...
If you have the thumbnail and image, it's just simple HTML.

PHP Syntax (Toggle Plain Text)
  1. <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 ?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vov4ik is offline Offline
16 posts
since Jul 2006
Jul 15th, 2006
0

Re: Thumbnailed images

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.
Reputation Points: 16
Solved Threads: 7
Junior Poster
Lafinboy is offline Offline
166 posts
since Jul 2004
Jul 15th, 2006
0

Re: Thumbnailed images

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.
Reputation Points: 10
Solved Threads: 7
Posting Whiz in Training
zippee is offline Offline
294 posts
since Jan 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: simple php form submit script
Next Thread in PHP Forum Timeline: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC