Sign inSign up

shivjm/node-libvips

By shivjm

Updated 4 months ago

Node.JS (14 to 19), libvips & supporting packages on Debian (for image processing with sharp, etc.)

Image
0

10K+

shivjm/node-libvips repository overview

docker-node-libvips

A Docker image including libvips (built from source) and Node.JS in Debian. Good base image for users of image processing libraries like sharp.

Repository

https://github.com/shivjm/docker-node-libvips/

Issues

https://github.com/shivjm/docker-node-libvips/issues/

Tags

nodeN-libvipsV, where N is the Node.js major version number (14, 16, 17, 18, or 19) and V is the libvips version (currently only 8.14.1). For example, to use Node.js v14 with libvips v8.14.1, use the shivjm/node-libvips:node14-libvips8.14.1 image. No latest image is provided.

See the full list of tags on Docker Hub.

Optional libvips features enabled

  • libjpeg
  • libexif
  • librsvg
  • cgif (installed from bookworm repository)
  • libtiff
  • fftw3
  • lcms2
  • libimagequant
  • orc-0.4
  • libwebp
  • libheif

libopenjp2 is installed but doesn’t appear to be recognized, so JPEG2000 images probably aren’t supported.

Improvements welcome.

Example

With a Node project whose package.json includes sharp as a dependency:

# If you need to create a new Node project.
mkdir my-new-project
cd my-new-project
npm init -y

# To install sharp and save it in the project’s dependencies.
npm install -S sharp

Dockerfile:

FROM shivjm/node-libvips:node16-libvips8.14.1

# First install the dependencies.

COPY package.json package-lock.json ./

RUN npm ci

# Then copy the code.

COPY . ./

CMD ["node", "index.js"]

Tag summary

Content type

Image

Digest

sha256:e7ab2a316

Size

388.8 MB

Last updated

4 months ago

docker pull shivjm/node-libvips:node24-libvips8.17.1