Jump to content

Thumbnail issue


habib009pk

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/175773-thumbnail-issue/
Share on other sites

Hi habib009pk,

 

There's not much you can do without having control over the source images and manually resizing them, an on-the-fly thumbnail creation script is going to take even longer because it will need to read in the source images and then resize.

 

The only options I can suggest are:

 

1.  Caching - write a script that will cache the images and display from the cache, as new images are uploaded the script will copy these over.

 

2.  Copy - write a script that will copy the images to your server and display from there, as new images are uploaded the script will copy these over.

 

Both the above are similar in theory but if you want to increase the loading speed (and decrese bandwidth usage) you're going to have to opt for one of these methods.

 

Unless anyone else has any better ideas?

Link to comment
https://forums.phpfreaks.com/topic/175773-thumbnail-issue/#findComment-926264
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.