Installation
Requirements
Section titled “Requirements”| Dependency | Version |
|---|---|
| PHP | 8.2+ |
| Symfony | 6.4, 7.x or 8.x |
Optional Dependencies
Section titled “Optional Dependencies”| Package | Required for |
|---|---|
symfony/ux-twig-component 2.13+ |
The <twig:Picasso:Image> component |
symfony/twig-bundle |
The picasso_image() and picasso_image_url() Twig functions |
league/glide |
Glide transformer (local image processing) |
intervention/image-driver-vips |
Glide vips driver (libvips) |
symfony/lock |
Glide lock option (one render per variant) |
symfony/web-link |
Preloading priority images |
kornrunner/blurhash + imagine/imagine |
BlurHash placeholder |
league/flysystem-bundle |
Flysystem loader |
vich/uploader-bundle |
VichUploader loader |
symfony/asset-mapper |
AssetMapper loader |
symfony/http-client + psr/http-client + nyholm/psr7 |
URL loader, Imgix cache purge (PSR-18 client) |
Installation
Section titled “Installation”composer require silarhi/picasso-bundle
# the <twig:Picasso:Image> componentcomposer require symfony/ux-twig-componentTwig is optional: without it, the bundle still generates and serves images, from PHP through ImageHelperInterface
(Images in a JSON API).
If not using Symfony Flex, register the bundle in config/bundles.php:
return [ // ... Silarhi\PicassoBundle\PicassoBundle::class => ['all' => true],];Install a transformer — at least one is required:
# Option A: Glide (local image transformation)composer require league/glide
# Option B: Imgix (CDN-based transformation)# No extra package needed, just configure your Imgix base URL