Welcome to WebmasterWorld Guest from 35.172.195.49

Forum Moderators: not2easy

Message Too Old, No Replies

Automatic Thumbnail?

     
8:04 pm on Jan 23, 2004 (gmt 0)

New User

10+ Year Member

joined:Jan 5, 2004
posts:25
votes: 0


Is there a way to create a thumbnail of an image "on the fly" within an html page? A small script that can be embedded in the page, or one file that can be called from a lot of pages?

I don't need a gallery script. I only need one thumbnail per page, for a lot of pages. But, it would save me from having to resize and store a lot of images.

Thanks!

8:17 pm on Jan 23, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member jomaxx is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 6, 2002
posts:4768
votes: 0


Quick and dirty - just use the same large image and resize it using the IMG HEIGHT= and WIDTH= attributes. Should be OK for only one thumb per page. I think you can even just specify the height and the browser will reduce the image width proportionately, or vice versa.

The image quality will not be quite as good as if you had used a graphics package to create the thumbnail, but IMO it will be just as good as any script that does it on the fly.

1:39 pm on Jan 24, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:Apr 3, 2003
posts:175
votes: 0


The one problem I see with that method is the whole reason to have a thumbnail in the first place - image size. What's the point of having a thumbnail that takes 15 seconds to load on a modem connection?

Sure it is extra work to create and store a thumbnail for each and every image, but that is kind of the point of having a thumbnail. Just my 2 cents.

1:56 pm on Jan 24, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 22, 2002
posts:2546
votes: 0


Steph,

The answer to your question is: Yes it can be done.

I use PHP to resize images on a couple sites and it works well. It does put more stress on the server to constantly resize on-the-fly so creating real thumbnails is really the best way forward.

Paint Shop Pro(among others) has a batch solution where you can resize them all at once.

Or, you could use the PHP script to resize them AND save the thumbnail to the server for future use.

Just how many images are we talking about here?

4:04 pm on Jan 24, 2004 (gmt 0)

Senior Member from GB 

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Feb 10, 2002
posts:939
votes: 5


Just to add to birdman's reply, there is a neat little free programme that I use called 'Easy Thumbnails'. You can batch the images and there are variations for file naming too. Very fast and easy to use.
Oh, I'm not connected to the above mentioned product in any way........
4:10 pm on Jan 24, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member jomaxx is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 6, 2002
posts:4768
votes: 0


balinor: What I suggested is a terrible idea for a page with a lot of thumbnails. With just one thumbnail on the page, it depends. It depends on how big the original image is, how much you want to reduce it, and how likely the average user is to click through to the detail image.

The disadvantages are obvious, but if the user does click through, then (a) the full image will be preloaded, so the detail page will load more quickly, and (b) only one image needs to be loaded instead of two, resulting in an actual bandwidth saving when this happens.

4:13 pm on Jan 24, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:June 27, 2003
posts:122
votes: 0


If it is a Windows Server then you may use the Thumnail Control, works very well.
7:41 pm on Jan 24, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 31, 2003
posts:2280
votes: 0


Paint Shop Pro(among others) has a batch solution

I've used ACDsee for this in the past.

7:48 pm on Jan 24, 2004 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 22, 2003
posts:1483
votes: 0


AspJpeg will do it on the fly
7:55 pm on Jan 24, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:June 27, 2003
posts:122
votes: 0


Really if you have windows server you should try Thumbnail control, not only will it convert in a fly, it can also show thumnails of HTML pages, DOC files, WMF, PNG, etc, etc all the Thumbnails you see in Windows explorer. You can have a service like Thumbshots.
5:31 pm on Jan 30, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 27, 2003
posts:730
votes: 2


Photoshop and a well scripted action. It does batches too.
7:41 pm on Jan 30, 2004 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 4, 2004
posts:456
votes: 0


Nothing against Fireworks or Photoshop, but when it comes to creating batch thumbnails (and optimizing for the Web) I've found Web Image Guru best:
[vimas.com...]

One nice feature is that when you create a thumbnail rather than just reduce the image size WIG allows you to select a portion of the image for the thumbnail. Of course if you just want to batch images to a thumbnail WIG handles that nicely.

I've found that WIG has better image optimization than either Macromedia or Adobe's products.

I have nothing to do with WIG, just a satisfied customer.

4:04 pm on Feb 1, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 16, 2002
posts:2139
votes: 1


This freeware has performed VERY well for me, in fact I can't believe it's free:

h**p://www.fookes.com/ezthumbs/index.php?2.6

Jon