bolt/thumbs

Small package based on GD to handle thumbnail resizes

Installs: 282 887

Dependents: 1

Suggesters: 0

Security: 0

Stars: 12

Watchers: 15

Forks: 16

3.4.1 2023-02-27 09:15 UTC

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())