crazywhalecc / static-php-cli

Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included.
https://static-php.dev
MIT License
1.31k stars 227 forks source link

VIPS extension support (graphic engine) #386

Open dev-polymer opened 7 months ago

dev-polymer commented 7 months ago

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!

crazywhalecc commented 5 months ago

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.

fidelix commented 4 months ago

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.