Closed allanvb closed 9 months ago
Hi @allanvb,
Your libvips is too old (VipsConnection
was added in 8.9, back in 2019). I would update that, if you can.
Having said that, this is also a php-vips bug, since it is supposed to work with libvips 8.7+. I'll see if I can fix it.
Hi @jcupitt ,
Thank you for quick response.
I'll look on my side into why the vips version installed in container is so old. Probably repos (of my Debian) doesn't contain it.
I patched git master php-vips, so if you use that, it ought to work. One test will fail (it's too annoying to fix).
However ... I would still update libvips if you can, recent versions have some useful fixes.
I made you a dockerfile for latest stable libvips on buster:
https://github.com/jcupitt/docker-builds/tree/master/libvips-buster
You'll probably want to adjust the dependencies, depending on what file formats you'd like to support.
@jcupitt on my side I updated the Dockerfile to php:8.1-apache-bookworm
,
so now it takes the latest stable for the dist, -v 8.14.1
currently.
Thank you for the dockerfile and quick reaction.
Seems to be good now. I think this can be closed now.
Hello, i'm trying to get php-vips work in my project, but i'm encountering such error when trying to instantiate the
Jcupitt\Vips\Image
class.Here are some details about environment. Sorry if something is missing, hope I gave sufficient details.
Dockerfile
php.ini
jcupitt/vips
version - v2.3.0The use case is simple:
Let me know please if you need additional details. Thank you in advance for any advice !