You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Cropperjs] Upgrade to Intervention Image v4 and make the image driver configurable
Migrate the server-side cropping from intervention/image ^2.5 (v2) to ^4.0,
which removes the indirect v2 deprecations reported in #3394. The Crop model
now uses the v4 API (decodeBinary/scaleDown/encodeUsingFileExtension and
ImageManagerInterface).
Add a configurable image driver through a new bundle configuration:
* cropperjs.driver: gd (default), imagick or vips
* cropperjs.driver_service: a custom Intervention DriverInterface service,
which takes precedence over driver
The ImageManager is built via ImageManager::usingDriver(); selecting vips
without the intervention/image-driver-vips package fails fast with a helpful
message. GD remains the zero-config default, preserving current behavior.
Tests are parameterized over the gd and imagick drivers and now cover the
crop region, max-size downscaling and output format paths.
0 commit comments