habib009pk Posted September 28, 2009 Share Posted September 28, 2009 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 More sharing options...
ILMV Posted September 28, 2009 Share Posted September 28, 2009 run time PHP doesn't do "run time". Why don't you just specify an img width & height attributes? Link to comment https://forums.phpfreaks.com/topic/175773-thumbnail-issue/#findComment-926258 Share on other sites More sharing options...
habib009pk Posted September 28, 2009 Author Share Posted September 28, 2009 i already do that since the image size is bigger so the loading process is very slow when i fixed the width and height. Is it any any solution in which i add any file which get the live addresses of the image and change it into thumbnail Link to comment https://forums.phpfreaks.com/topic/175773-thumbnail-issue/#findComment-926260 Share on other sites More sharing options...
Bricktop Posted September 28, 2009 Share Posted September 28, 2009 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 More sharing options...
ILMV Posted September 28, 2009 Share Posted September 28, 2009 Let's also remember to respect the owner who holds the copyright of those images, if it isn't yourself or someone who has given you permission to use them. Link to comment https://forums.phpfreaks.com/topic/175773-thumbnail-issue/#findComment-926277 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.