Closed gmcmicken closed 1 month ago
Hi @gmcmicken,
php-vips hasn't used PECL for a long time. If you want to use PECL, you need the 1.x branch of php-vips:
https://github.com/libvips/php-vips/tree/1.x
Which I think should still work, though I've not tested it for years.
php-vips 2.0 and later have been reworked to use php FFI instead. There's no native component (except for the libvips library itself), with everything in pure PHP. This is supposed to improve reliability and make deployment easier.
I'd just enable ffi and install php-vips 2.x with composer.
Hey thanks, I just found the problem and it's with the file read and not to do with php-vips at all. I would use ffi but this is a managed platform on aws and php is configured without ffi.
I'm in the midst of upgrading php to 8.x on amazon linux 2, and while libvips is installed the same as with php 7.x it seems to be writing garbage files. I tried with a simple readFromFile() and writeToFile(), removing all my image processing code and it's still messed up. Before I spend my effort into this - is it something you've seen before?
I installed libvips using a package from the remi repository:
and then installed php-vips with pecl
which is the same process I did in my php7 environment.
Result: