The following should work:
sudo apt update sudo apt install php-dev libvips-dev libvips-tools vips sudo pecl install vips vips --version
Otherwise, follow the instructions on the vips library github page
Don't forget to install required packages before running ./configure:
./configure
sudo apt-get install libglib2.0-dev pkg-config build-essential libexpat1-dev libjpeg-dev libpng-dev libwebp-dev gobject-introspection libgs-dev
sudo pecl install vips
– And add the following to the relevant php.ini:
extension=vips
If you don't have pear yet:
sudo apt install php-pear php7.4-dev phpize
(or extension=vips.so if you are in older PHP)
extension=vips.so
The vips extension is btw also on github:
There was an error while loading. Please reload this page.