Skip to content

nrj/heroku-buildpack-imagemagick-webp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

heroku-buildpack-imagemagick-webp

Use ImageMagick built with libwebp inside a Heroku Cedar environment. This buildpack will download both libraries, build them from source and install them along side your app. Your $PATH and $LD_LIBRARY_PATH will also be updated to use this version of ImageMagick instead of the default Heroku one, which does not currently have libwebp support.

Since this buildpack is building libwebp and ImageMagick from source your first deploy will take a very long time (around 10 mins). However after building once the installed libraries are stored in a cache directory and will be used for all future deploys. If for any reason you want to force a rebuild of libwebp and ImageMagick, please check out the heroku-repo plugin.

Usage

This buildpack is meant to be used through heroku-buildpack-multi, so in your app you need to:

heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi

Then create a .buildpacks file inside your app:

https://github.com/nrj/heroku-buildpack-imagemagick-webp
https://github.com/heroku/heroku-buildpack-nodejs

The second line is for a nodejs buildpack, but it can be any other buildpack you want. If it is not working with yours, please report a bug.

Verify Installation

You can verify that ImageMagick was built with libwebp support by running the following:

heroku run "identify -list format"

If the output includes WEBP* rw- WebP Image Format (libwebp 0.4.2) then you're all set.

LICENSE - "MIT License"

Copyright (c) 2014 Nick Jensen, https://nrj.io Copyright (C) 2012 Heroku, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Heroku buildpack for ImageMagick and libwebp.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages