How to install libvips with mozjpeg and libimagequant on Debian/Ubuntu?

1.9k Views Asked by At

I want to build a server for treat all images of a website.

I have a script in Nodejs using Sharp and I would like to setup the server with the best libs to use maximum power of libvips.

I would like to get help to install it.

I can install libvips-dev using:

apt-get install libvips-dev

But it don't have mozjpeg and libimagequant.

1

There are 1 best solutions below

2
GAD3R On

To install libimagequant through apt you should have debian (Buster, Bullseye or Sid).

On Ubuntu the package is available only for Ubuntu disco 19.04 and eoan 19.10.

sudo apt install libimagequant-dev

The package mozjpeg is available on this git repository, the build instruction and requirement : building.md