static-php-cli icon indicating copy to clipboard operation
static-php-cli copied to clipboard

VIPS extension support (graphic engine)

Open dev-polymer opened this issue 1 year ago • 2 comments

Hi frends! libvips/php-vips is fast and low-memory usage graphic engine (for create image thumbnails, add watermarks and etc.). Bechmarks compare to imagick and GD → here.

And will be greate to support its in static-php-cli (and in my case, in FrankenPHP, based on static-php-cli ).

php-vips exists as PHP-FFI version and as standart binary php-extension (stiil supported in 1.x branch).

FFI-version cant be implemented on Linux (because PHP-FFI in static-php-cli not supported yet https://static-php.dev/en/guide/extensions.html what really makes it unusable for website hosting), for this reason i propose try to support as binary php-vips 1.x binary PHP-extension.

P.S. Thanks all static-php-cli team for awesome project!

dev-polymer avatar Mar 15 '24 13:03 dev-polymer

vips requires glib, glib requires meson, meson requires python. I can theoretically implement vips extension, but the cost is that python needs to be installed before compilation.

crazywhalecc avatar May 15 '24 17:05 crazywhalecc

vips requires glib, glib requires meson, meson requires python. I can theoretically implement vips extension, but the cost is that python needs to be installed before compilation.

I think that would be more than acceptable, but the 2.x branch would be much preferred.

fidelix avatar Jun 14 '24 09:06 fidelix

Closed because static-php-cli can already build FFI under glibc (bin/spc-gnu-docker) or MacOS. php-vips name is misleading because it's not a php-extension but a composer package that relies on FFI.

henderkes avatar May 29 '25 04:05 henderkes