About this project

Spatie Image is an open-source PHP package that provides an expressive, fluent API for manipulating images. The README emphasizes that image manipulation does not have to be hard, showing short chained examples that load an image, apply one or more operations, and save the result. Documented capabilities include resizing an image to fit within a given width and height without altering its aspect ratio, converting an image to greyscale, adjusting brightness, setting output quality, rotating by orientation, and sharpening. Operations are chained on an Image object created via Image::load($path), and results are written with save(), either to a new path or over the original file. Installation is done through Composer with the command composer require spatie/image. The README notes that since version 1.5.3 the package requires the PHP exif extension to be enabled. Full usage details are deferred to the project's online documentation. The repository includes a changelog, a contributing guide, and a security contact for reporting bugs. Testing instructions involve installing pixelmatch via npm and running composer test. The package is MIT licensed. The README states that large parts of the codebase were copied from Intervention Image by Oliver Vogel and modified for readability and to fit the maintainers' needs. The project is maintained by Spatie and credits Freek Van der Herten and all contributors. It also mentions a postcardware request: users are free to use the package, but are asked to send a postcard if it reaches production.