phpThumb – A Full-Featured PHP Library For Creating Thumbnails

Working with images and resizing or cropping them can sometimes be challenging as there is always a math going on behind: the ratios, resizing with the width or height, x-y values for cropping, etc.

phpThumb is a PHP library that handles all the hard work on creating thumbnails with only few lines of code.

It accepts any source types for images (from the filesystem, URL or database) and all popular image formats.


Images can be rotated, cropped, watermarked, their quality can be defined and there is even a built-in caching to minimize the server load.

phpThumb also has a wide collection of filters including contrast, blur, brightness, applying rounded corners and more.