At the time of creation libvips is not available on Amazon Linux 2023. See issue 295
This repository is intended to provide a solution to build it on an AMI or Dockerfile.
The build is mostly intended to support widely used format on the web:
- jpg (via libjpeg-turbo)
- png (via spng)
- gif (via cgiflib)
- via (via libwebp)
- avif (via libheif)
- tiff (via libtiff)
in addition is using:
- SIMD support via highway
- EXIF metadata support via libexif
- image quantisation with libimagequant
- MagickCore
To build directly on an EC2 instance, just get install-libvips
script and use it on your instance.
chmod +x ./install-libvips.sh
sudo ./install-libvips.sh
Check that vips
is installed properly (in /usr/local/bin
) and that the configuration is appropriate:
vips -v && vips --vips-config
docker build -t libvips-al2023 -f Dockerfile --platform linux/amd64 .
docker run -it --platform linux/amd64 --rm -v $(pwd -P):/tmp libvips-al2023
At this moment this does not compile on arm64 due to architecture issue on libx265 This will be worked on time permitting but priority is x86 at this time.
Possible multiplaform build in the future:
docker buildx create --use --name multiplatform
docker buildx build --platform linux/amd64,linux/arm64 -t libvips-al2023 -f Dockerfile .