Page 1 of 1

Thumbnail issue

Posted: Mon Sep 28, 2009 3:43 am
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.

Re: Thumbnail issue

Posted: Mon Sep 28, 2009 1:35 pm
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

Re: Thumbnail issue

Posted: Mon Sep 28, 2009 2:01 pm
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" />