Heroku buildpack with libvips installed.
It uses the latest libvips that supported by Sharp 0.23.4 Which is Libvips 8.8.1 - Both are needed if you're node is 8.x
You can even use the ruby-vips gem 😉
Important notes:
In order to use this buildpack, you must install glib-2.0
packages in your heroku application.
The easiest way to do this is using the heroku apt buildpack.
heroku buildpacks:add --index 1 heroku-community/apt
Create a new file named Aptfile
in your app root directory and append the following packages:
libglib2.0-0
libglib2.0-dev
You can add extra packages like libjpeg
libpng
libtiff
giflib
libwebp
libpoppler
and more.
Get any packages you may have missing.
- Make sure the required
glib-2.0
dependency for libvips is fulfilled. - Add this buildpack to your app:
To use the latest stable version:
heroku buildpacks:add --index 2 rootux/heroku-buildpack-libvips
To use the edge version (i.e. the code in this repo):
heroku buildpacks:add -i 2 https://github.com/rootux/heroku-buildpack-libvips
This is the script used to build libvips.
All previous committers and Heroku support team (esp @schneems)