What's Changed
Implementation of __debugInfo()
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)
}
Implementing Classes
Intervention\Image\Image
Intervention\Image\Origin
Intervention\Image\EncodedImage
Intervention\Image\Drivers\Gd\Frame
Intervention\Image\Drivers\Imagick\Frame
Intervention\Image\Geometry\Rectangle
Intervention\Image\Colors\Rgb\Color
Intervention\Image\Colors\Cmyk\Color
Intervention\Image\Colors\Hsl\Color
Intervention\Image\Colors\Hsv\Color