Best Tutorials website


Generating thumbnails on-the-fly with PHP

Generating thumbnails on-the-fly with PHP

This tutorial describes the development and engagement of a thumbnail script step-by-step. It also provides a live demo with statistical overview of the key data of the scripts benefits. The developed script is able to check if the installed gd-library can handle the grafic-format announced and checks for a previous generated thumbnail. If there is already a thumbnail, it checks if the old one meets the desired sizes. If not, it will generate a new one and save this to a cachefolder which is created below the origin folder of your image. Included features of this script are: either x or y parameter, or both to make sure your thumbnail fits your requirements; resizing images with or without keeping the aspect ratio; resource-optimized handling of requests; and also resizing to bigger sizes possible.




Views: 956 | Rating star | by Stephen




View this tutorial
Broken link Report broken link?