/heroku-buildpack-libvips

Heroku buildpack with libvips + allows ruby-vips gem

Primary LanguageShellMIT LicenseMIT

heroku-buildpack-libvips

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 😉

Requirements

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.

Command-line

heroku buildpacks:add --index 1 heroku-community/apt

Aptfile

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.

Usage

  1. Make sure the required glib-2.0 dependency for libvips is fulfilled.
  2. Add this buildpack to your app:

Command-line

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

Build script

This is the script used to build libvips.

Credit

All previous committers and Heroku support team (esp @schneems)