Skip to content

Latest commit

 

History

History
73 lines (46 loc) · 1.7 KB

File metadata and controls

73 lines (46 loc) · 1.7 KB

libvips on Amazon Linux 2023 AMI/Docker

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:

AMI / EC2

Building

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

Running

Check that vips is installed properly (in /usr/local/bin) and that the configuration is appropriate:

vips -v && vips --vips-config

Docker

Building

docker build -t libvips-al2023 -f Dockerfile --platform linux/amd64 .

Running docker build

docker run -it --platform linux/amd64 --rm -v $(pwd -P):/tmp libvips-al2023

Testing

ARM64

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 .