Skip to content

Picasso Bundle

The missing image component for Symfony, inspired by Next.js Image. Write one line of Twig, get AVIF, WebP, a responsive srcset, blur placeholders and lazy loading.
Terminal window
composer require silarhi/picasso-bundle
<twig:Picasso:Image src="hero.jpg" width="1920" height="1080" sizes="100vw" alt="Hero" />

The same photo, 800 px wide, in the three default formats. The browser downloads the first one it supports.

Every format

AVIF, WebP and JPEG <source> tags from your config: browsers pick the lightest they support.

Responsive srcset

Widths for every breakpoint, generated from the sizes prop. How it works

Blur placeholders

LQIP, BlurHash or your own, shown while the image loads. See them

Core Web Vitals

Dimensions read from the source against layout shifts, one priority prop for the LCP image.

Any storage

Local directories, S3 and other Flysystem storages, VichUploader entities, remote URLs.

Local or CDN

Glide on your servers, Imgix, or any CDN through your own transformer.