$image = new \Intervention\Image\Image(); $image->make('path/to/image.jpg');
$image->resize(500, null, function ($constraint) { $constraint->aspectRatio(); });
$image->insert('path/to/watermark.png', 'bottom-right', 10, 10);
$image->filter(new \Intervention\Image\Filters\Grayscale());This code applies a grayscale filter to the image. The `filter()` method accepts an instance of a filter class as an argument. The filter class must implement the `FilterInterface` interface. Package/Library: Intervention Image In conclusion, based on the code examples and package usage, it is evident that the PHP Image model is referring to the Intervention Image Library. This library provides a simple and intuitive interface for working with images in PHP. It supports a wide range of image formats and provides extensive image processing capabilities.