DescriptionEasily display images as a thumbnail on the fly.
With this file you can easily display thumbnails, which have been scaled down with PHP and are therefore loaded faster.
The script is simple and easy to use. You can find some predefined sizes in thumbs.php - line 61; medium (150x150px) and large (200x200px).
The default size of the thumbnails is 100x100 pixels.
After you have uploaded the file to your server, you can display a thumbnail of an image this way:
However, if you want to use a custom size, do it like this:
according to what you've set in thumbs.php.
That's it! The previews are generated without the need to store them permanently on the server.
new: added support for transparent .png files