Thumbnail issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
habib009pk
Forum Commoner
Posts: 43
Joined: Sun Jul 05, 2009 11:28 pm

Thumbnail issue

Post by habib009pk »

Dear Friends
i am facing a problem about thumbnail, actually i am geting image path from another server which i put in the src attribute of image tag, now the problem is that when i load the webpage, as the images are very big in size so the displaying time is very large.

So I want to create thumbnail of that images at run time, no images has been stored at any location for these images, as it is through out live system. Just i want to display the images in short size and weight.

what code i used for that procedure??

Kindly helps me if anyone has any idea about that problem.
Regards.
uyewq
Forum Newbie
Posts: 22
Joined: Thu Sep 17, 2009 6:21 am

Re: Thumbnail issue

Post by uyewq »

Dear Habib009pk,
if resized & retouched of images are nowhere as u said, it is not possible to have quick thumbnail shots i think.
maybe you should look online thumbnailer services. original url -> online thumbnailer services -> thumbnail output's url to your web page
bye
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Thumbnail issue

Post by pickle »

You'll have to create a image proxy file on your server. That file is a PHP file that downloads the image as passed to it, generates a thumbnail in RAM, then outputs that thumbnail. You would call this page like this:

Code: Select all

<img src = "path/to/image/proxy/file.php?file_to_download=http://www.flickr.com/image/XXXXXXXXX" />
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply