by kyleabaker | December 6, 2007 3:25 am
I finally got around to implementing thumbnails for the screenshots to the right and in the gallery! Basically, instead of loading full screen images (which take ages to load on a slow internet connection) you are now loading images that have been shrunk from the originals down to the size that you see so no bandwidth is wasted and you see them load much faster!
Here is how it works:
The script that I’m using takes a src param and a width param. [You'll see this if you're viewing the source of the images. ] The src (or source) param is the path to the original full size image. Once the source or path to the image has been established, the script shrinks and caches (saves or stores) the image on the server and then sends it to you. This makes my job of maintaining screenshots much easier!
Just thought you ought to know. You most likely would never have known that these images were served to you on-the-fly and are not actually stored on the server in the sizes that you see. Just a neat little php trick!
If you’re interested in the script that I used you can find it at phpthumb.sourceforge.net/. It’s open source and updated fairly often (just enough so it’s not out of date, lol).
Enjoy the faster page loads!
Source URL: http://kyleabaker.com/2007/12/06/screenshots-now-use-on-the-fly-thumbnails/
Copyright ©2013 kyleabaker.com unless otherwise noted.