intervention/image
Intervention Image is a PHP image handling and manipulation library for Laravel and other frameworks. Create, resize, crop, encode, and optimize images with a simple fluent API, supporting GD and Imagick, plus drivers and integrations for common storage and HTTP workflows.
Intervention Image Version 4 is a major release for PHP 8.3+ that focuses on improving the API and resolving internal inconsistencies rather than introducing as many new features as possible.
The package remains true to its core principles and continues to offer the familiar quality features like:
The entire API underwent a thorough review. The goal was to identify and resolve internal inconsistencies, ensure greater future-proofing and scalability, and further improve consistency.
Read more about the API improvements
At the same time, error and exception messages have been improved to provide clear, immediate insight into what went wrong. These improvements include a restructured exception system with a well-defined hierarchy.
Other new features include an improved color system with alpha channels for all color spaces, support for Oklab and Oklch color spaces, the use of PHP enums, and many other small improvements.
Full Changelog: https://github.com/Intervention/image/compare/3.11.4...3.11.5
Intervention\Image namespace @olivervogel in https://github.com/Intervention/image/pull/1453Full Changelog: https://github.com/Intervention/image/compare/3.11.3...3.11.4
Full Changelog: https://github.com/Intervention/image/compare/3.11.2...3.11.3
Full Changelog: https://github.com/Intervention/image/compare/3.11.1...3.11.2
Full Changelog: https://github.com/Intervention/image/compare/3.11.0...3.11.1
strip to remove meta data by @olivervogel & @deluxetom in https://github.com/Intervention/image/pull/1421Full Changelog: https://github.com/Intervention/image/compare/3.10.2...3.11.0
Full Changelog: https://github.com/Intervention/image/compare/3.10.1...3.10.2
Full Changelog: https://github.com/Intervention/image/compare/3.10.0...3.10.1
For Christmas🎄🎁, a small but nice feature: Implementation of __debugInfo() for various classes. Resulting in more informative debug information when objects of the classes are output via var_dump().
For example the following code:
$image = ImageManager::gd()->read($path);
$color = $image->pickColor(0, 0);
var_dump($image, $color);
results in:
object(Intervention\Image\Image)#44 (2) {
["width"]=>
int(270)
["height"]=>
int(168)
}
object(Intervention\Image\Colors\Rgb\Color)#9 (4) {
["red"]=>
int(123)
["green"]=>
int(165)
["blue"]=>
int(157)
["alpha"]=>
int(255)
}
Intervention\Image\ImageIntervention\Image\OriginIntervention\Image\EncodedImageIntervention\Image\Drivers\Gd\FrameIntervention\Image\Drivers\Imagick\FrameIntervention\Image\Geometry\RectangleIntervention\Image\Colors\Rgb\ColorIntervention\Image\Colors\Cmyk\ColorIntervention\Image\Colors\Hsl\ColorIntervention\Image\Colors\Hsv\ColorFull Changelog: https://github.com/Intervention/image/compare/3.9.0...3.9.1
Full Changelog: https://github.com/Intervention/image/compare/3.7.2...3.8.0
Full Changelog: https://github.com/Intervention/image/compare/3.7.1...3.7.2
Full Changelog: https://github.com/Intervention/image/compare/3.7.0...3.7.1
Full Changelog: https://github.com/Intervention/image/compare/3.6.5...3.7.0
Full Changelog: https://github.com/Intervention/image/compare/3.6.2...3.6.3
Full Changelog: https://github.com/Intervention/image/compare/3.6.1...3.6.2
Full Changelog: https://github.com/Intervention/image/compare/3.6.0...3.6.1
Full Changelog: https://github.com/Intervention/image/compare/3.5.1...3.6.0
Full Changelog: https://github.com/Intervention/image/compare/3.5.0...3.5.1
Full Changelog: https://github.com/Intervention/image/compare/3.4.0...3.5.0
How can I help you explore Laravel packages today?