An open API service indexing awesome lists of open source software.

https://github.com/libvips/php-vips-ext

Low-level libvips binding for PHP
https://github.com/libvips/php-vips-ext

Last synced: 8 months ago
JSON representation

Low-level libvips binding for PHP

Awesome Lists containing this project

README

          

# Low-level PHP binding for libvips

**This extension is deprecated** php-vips 2.0+ has switched to FFI for calls
into the libvips binary, so this extension is no longer necessary. It will not
be updated again (though it might still be useful if for some reason you don't
/ can't update to php-vips 2.0).

This extension lets you use the libvips image processing library
from PHP 7 and PHP 8.

This is not supposed to be used directly! Install this, then use
[php-vips 1.x](https://github.com/libvips/php-vips) to layer a nice (and
documented!) API on top of this extension.

libvips is fast and needs little memory. The [`vips-php-bench`](
https://github.com/jcupitt/php-vips-bench) repository tests
`php-vips` against `imagick` and `gd`: on that test, and on my laptop,
`php-vips` is around four times faster than `imagick` and needs 10 times less
memory.

### Example

```php
#!/usr/bin/env php