Giter Site home page Giter Site logo

imagemagick-cnb's Introduction

heroku-buildpack-imagemagick-heif

The rise in popularity and use of HEIF/HEIC(High Efficency Image Format) means your project's image processing also needs to be able to handle this format. The current default version of imagemagick installed on heroku:20 dynos is a version 6.xx and does not support processing heic image files.

This Heroku buildpack vendors a version of ImageMagick with WEBP and HEIF support binaries into your project.

This one works was built for Heroku stack 20.

The tar file in the /build folder currently contains:

Version: ImageMagick 7.1.0-29

You will need to build a new binary if you want to use a newer or different version. To build a new binary see How to Build a New Binary

Usage

Step 1 : Adding the buildpack

From your projects "Settings" tab add this buildpack to your app in the 1st position:

https://github.com/yespark/heroku-imagemagick-buildpack

NOTE: _To ensure the newer version of imagemagick is found in the $PATH and installed first make sure this buildpack is added to the top of the buildpack list or at "index 1".

Step 2 : Clear the cache(Not Sure if this is necessary)

Since the installation is cached you might want to clean it out due to config changes.

heroku plugins:install heroku-repo
heroku repo:purge_cache -app HEROKU_APP_NAME

How to Build a New Binary (if you want to make somes changes)

The binary in this repo was built in a heroku:20 docker image running in a local dev environment. However, there is a script called build.sh made to build a tar file through docker easily, it will be copied to the build directory. Then you should commit this changes to your git, and adjust the buildpack url previously mentionned just above.

Prerequisites

  • Docker installed and running in local dev environment. Get Docker

Credits

License

The gem is available as open source under the terms of the MIT License.

imagemagick-cnb's People

Contributors

portersupport avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.