Widescreen (Off)

Rounded (On)

Night Mode (Off)


Over the Rainbow Default Lavender
Terms Main Content



Easily 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:

<img src="thumbs.php?image=folder/image.png">


<img src="thumbs.php?image=image.png">

However, if you want to use a custom size, do it like this:

<img src="thumbs.php?type=medium&image=folder/image.png">


<img src="thumbs.php?type=large&image=folder/image.png">

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.

Changelog (2018/05/11):

new: added support for transparent .png files