Important notes:
This buildpack started out as one of the many that are out there, and ended up being completely different. The build script uses docker, includes pdf support via poppler, and adds support for HEIC images from Apple devices. In order to use this buildpack, you must install these packages in your heroku application:
- libglib2.0-0
- libglib2.0-dev
- libpoppler-glib8
- libheif-dev
The easiest way to do this is using the heroku apt buildpack and copy those four lines into an Aptfile.
This buildpack was put together with the help of John Cupitt, the creator of libvips. He was invaluable in my efforts to get a working libvips installation with pdf support on heroku. Thank you John!
Heroku buildpack with libvips installed.
Add this buildpack to your app:
https://github.com/travisp/heroku-buildpack-vips
This is the script used to build vips using docker.
VIPS_VERSION=x.y.z ./build.sh
After building a tar file, it will be copied to the build
directory. Then you should commit this changes to git.