xicrow / php-thumb
Thumbnail generation for PHP
2.0.1
2026-10-31 11:06 UTC
Requires
- php: ~8.0
- ext-curl: *
- ext-fileinfo: *
- ext-gd: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-31 11:06:58 UTC
README
Thumbnail generation for PHP
Installation
The recommended way to install is through Composer.
{
"require": {
"xicrow/php-thumb": "~2.0"
}
}
Example
See examples in the demo folder
TODO
Handle remote imagesUse placeholder images for when errors occur (i.e. missing images)Improve demos- Cleanup code structure and flow
- When resizing in seperate process, also download remote images in that process, if possible
- PHPunit tests
Notes
Explanation of the parameters for imagecopyresampled():
php.net/imagecopyresampled
License
Copyright © 2017 Jan Ebsen Licensed under the MIT license.