bolt / thumbs
Small package based on GD to handle thumbnail resizes
3.4.1
2023-02-27 09:15 UTC
Requires
- php: ^5.5.9 || ^7.0
- ext-gd: *
- bolt/filesystem: ^2.3
- contao/imagine-svg: ~0.1.2
- doctrine/cache: ^1.4
- silex/silex: ^1.3
Requires (Dev)
- phpunit/phpunit: ^4.8 || ^5.7
- symfony/browser-kit: ^2.7
README
Image Thumbnail handler for Bolt
Installation
Bolt Thumbs is installed as a default dependency of Bolt. However, for use independently it can be included in your Composer project:
composer require bolt/thumbs:^3.4
Should you want to work with the development branch(es), you can specficy those as Composer requirements instead.
To install the 3.x development branch:
composer require bolt/thumbs:dev-3.x@dev
Alternatively to install the master branch (which requires Silex 2):
composer require bolt/thumbs:dev-master@dev
Configuration
If you've already got a working installation of Bolt, you can safely skip this.
To use the Botl Thumbs service provider onto your Silex based application,
simply ->register()
the \Bolt\Provider\ThumbnailsServiceProvider
class in
your registration phase, e.g.:
/** @var \Silex\Application $app */ $app->register(new \Bolt\Provider\ThumbnailsServiceProvider())