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
- Host: GitHub
- URL: https://github.com/libvips/php-vips-ext
- Owner: libvips
- License: mit
- Created: 2016-09-03T09:45:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-12T08:39:46.000Z (over 1 year ago)
- Last Synced: 2025-06-19T20:14:29.102Z (9 months ago)
- Language: C
- Size: 5.51 MB
- Stars: 102
- Watchers: 7
- Forks: 11
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE.txt
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