Skip to content

Drop-in precompiled libvips for sharp that has better PNG (libimagequant) and JPEG (mozjpeg) support. See THIRD-PARTY-NOTICES.md for important license details.

License

Notifications You must be signed in to change notification settings

avishnyak/sharp-libvips

 
 

Repository files navigation

Forked precompiled libvips

This repo is for a precompiled version of libvips that includes libimagequant for better PNG support when using sharp and mozjpeg for better JPEG encoding.

Install Instructions:

  • Set ENV Variable npm_config_sharp_libvips_binary_host=https://github.com/avishnyak/sharp-libvips/releases/download
  • Run npm install or yarn install

Currently compiled and tested against linux-x64 and linux-musl only. Let me know if you need any of the other flavors.

The base URL can be overridden using the npm_config_sharp_libvips_binary_host environment variable.

https://sharp.pixelplumbing.com/install#custom-prebuilt-binaries

Testing

I run the entire sharp test suite against the pre-built binaries in the following distros:

Image Node Version
Debian Buster Node 10
Debian Stretch Node 10
Ubuntu Bionic Node 10
Ubuntu Focal Node 10
CentOS 7 Node 10
Arch (latest) Node 10
Alpine 3.11 Node 12

Contributions

Please make contributions upstream at https://github.com/lovell/sharp-libvips.

Licences

These scripts are licensed under the terms of the Apache 2.0 Licence.

The shared libraries contained in the tarballs are distributed under the terms of various licences, one of which is GPL.

About

Drop-in precompiled libvips for sharp that has better PNG (libimagequant) and JPEG (mozjpeg) support. See THIRD-PARTY-NOTICES.md for important license details.

Resources

License

Stars

Watchers

Forks

Languages

  • Shell 74.9%
  • Dockerfile 19.5%
  • CMake 5.6%