Heroku buildpack with libvips installed.
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 zoras/heroku-buildpack-libvips
To use the edge version (i.e. the code in this repo):
heroku buildpacks:add -i 2 https://github.com/zoras/heroku-buildpack-libvips
This is the script used to build libvips.
All previous committers and Heroku support team (esp @schneems)