Skip to content

2.0.0-rc1

Pre-release
Pre-release

Choose a tag to compare

@tito10047 tito10047 released this 16 Aug 11:10
· 28 commits to main since this release

πŸš€ 2.0.0-rc1 β€” the Variant pipeline rewrite

First public release candidate of Progressive Image Bundle 2.0: a from-scratch DDD rewrite of how images actually get generated, and full independence from LiipImagineBundle.

β–Ž ⚠️ This is a pre-release. Expect breaking changes before a final 2.0.0 tag β€” pin the exact version if you use it in production.

✨ Highlights

  • Content-addressed Variant pipeline β€” every generated size is identified by a deterministic hash of source + spec. The same request from any worker/process produces the same file, with no coordination
    needed beyond a short-lived lock.
  • Three generation strategies β€” sync, terminate (on kernel.terminate), or async via Messenger. Pick when generation actually happens.
  • Full Liip parity, finally: standalone pgi_filter() Twig function (and its PHP-side equivalent, ResolveFilterUrlHandler, for API responses etc.), an on-the-fly resolve route, and
    progressive-image:variant:warm/:remove CLI commands.
  • New filters: grayscale, negative, auto_rotate, paste, relative_resize β€” plus progressive/strip_metadata encoding options and real post-processing (jpegoptim, pngquant, cwebp, avifenc).
  • LiipImagineBundle dependency removed entirely. Not required, not touched.
  • Symfony Flex recipe submitted β€” zero-config composer require once merged.
  • Docs rebuilt around pgi.blue, including a Liip migration guide.

πŸ› Notable fixes since rc0

  • asset_mapper resolver no longer breaks container compilation on projects without symfony/asset-mapper installed.
  • Bundle assets now register under the correct scoped npm namespace, fixing the style.css autoimport.
  • generation.transport is now actually wired into Messenger routing for the async strategy.

βš™οΈ Requirements

  • PHP 8.3+ (up from 8.2+) β€” required by intervention/image ^4.2, which the Variant pipeline is built on.
  • Symfony 6.4, 7.4, or 8.1+.

Full changelog: CHANGELOG.md β†’ 2.0.0-rc1