whalehub / libvips-static

A Dockerfile which enables you to build a statically-linked vips binary.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

The Dockerfile in this repository produces a statically-linked vips binary which should be usable on any Linux distribution. It includes all of libvips' optional dependencies:

whalehub@pdh:~# vips --vips-config
enable debug: false
enable deprecated: true
enable modules: false
enable cplusplus: true
enable RAD load/save: true
enable Analyze7 load/save: true
enable PPM load/save: true
enable GIF load: true
use fftw for FFTs: true
accelerate loops with ORC: true
ICC profile support with lcms: true
zlib: true
text rendering with pangocairo: true
font file support with fontconfig: true
EXIF metadata support with libexif: true
JPEG load/save with libjpeg: true
JXL load/save with libjxl: true (dynamic module: false)
JPEG2000 load/save with OpenJPEG: true
PNG load/save with libspng: true
PNG load/save with libpng: false
selected quantisation package: imagequant
TIFF load/save with libtiff: true
image pyramid save with libgsf: true
HEIC/AVIF load/save with libheif: true (dynamic module: false)
WebP load/save with libwebp: true
PDF load with PDFium: true
PDF load with poppler-glib: false (dynamic module: false)
SVG load with librsvg: true
EXR load with OpenEXR: true
OpenSlide load: true (dynamic module: false)
Matlab load with libmatio: true
NIfTI load/save with niftiio: true
FITS load/save with cfitsio: true
GIF save with cgif: true
selected Magick package: MagickCore (dynamic module: false)
Magick API version: magick6
Magick load: true
Magick save: true

The static binary can be downloaded from the Releases page or built locally with Docker.

Building

In order to use this Dockerfile, you need to be running Docker 18.06 or newer because it makes use of a couple of BuildKit features.

To create a statically-linked vips binary in the current working directory, execute either one of the following commands:

DOCKER_BUILDKIT=1 docker build -o . .
docker buildx build -o . .

About

A Dockerfile which enables you to build a statically-linked vips binary.

License:GNU General Public License v3.0


Languages

Language:Dockerfile 100.0%