Search by

xicrow / php-thumb

xicrow

Thumbnail generation for PHP

Package info

github.com/xicrow/php-thumb

pkg:composer/xicrow/php-thumb

Statistics

Installs: 15

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

2.0.1 2026-10-31 11:06 UTC

This package is auto-updated.

Last update: 2026-10-31 11:06:58 UTC


README

Thumbnail generation for PHP

Packagist Latest Stable Version Packagist Total Downloads

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 images
  • Use 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.