Compiling imagemagick with HEIC support in heroku(ubuntu)

Praaveen Vr
praaveen
Published in
1 min readFeb 28, 2022

HEIC is a image format, which is supported by iOS, and will be used exclusively by iOS.

compiling-imagemagick-with-heic-support in ubutu

Sample HEIC images and preview

a. Prepare a package or get an URL
Get already available package url from internet. Example

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

b. App Changes

  1. Create a file called Aptfile and add the library name called libheif-dev.
  2. Push it along with repo

c. Get into Heroku
Step 1 : Adding the buildpack

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

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

Step 2 : Clear the cache

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

note : Your new buildpack configuration will be used when this app is next deployed.

Reference :

--

--