libvips adapter for imagine
Version 8.7 or higher of libvips is highly recommended.
rotate by angles other than multipliers of 90 are not supported with older versions of libvips.
The most (to us at least) important stuff is implemented. There may be edge cases, which are not covered yet, but those will be hopefully fixed soon. Report them, if you encounter one.
Even it this is not a 1.0.0 release yet, the library is somehow battle tested as we use it on rokka.io.
Just run the following
composer require rokka/imagine-vips
and then you can use it like any other Imagine implementation with eg.
$imagine = new \Imagine\Vips\Imagine(); $size = new Imagine\Image\Box(40, 40); $mode = Imagine\Image\ImageInterface::THUMBNAIL_INSET; $imagine->open('/path/to/large_image.jpg') ->thumbnail($size, $mode) ->save('/path/to/thumbnail.png')
Needs vips 8.6 or higher:
- rotate by angles other than multipliers of 90
Not implemented yet
Most of them are not that important to us, so any contributions are welcome. Drawer for example may be a low hanging fruit, if you want to get into it.
If you have vips 8.7.0, layers and animated gifs should work like with imagick.
Natively supported by libvips for saving are jpg, png, webp and tiff. If you have vips 8.7.0 with imagemagick support, it will use vips "magicksave" for all other formats. It not, this adapter falls back to the Imagick or GD implementation.
Any contribution is very appreciated, just file an issue or send a Pull Request.