Skip to content

Instantly share code, notes, and snippets.

@pjobson
Last active August 4, 2026 04:36
Show Gist options
  • Select an option

  • Save pjobson/0f60c3baf70930a5a35fc4a02d989f5f to your computer and use it in GitHub Desktop.

Select an option

Save pjobson/0f60c3baf70930a5a35fc4a02d989f5f to your computer and use it in GitHub Desktop.
Build ImageMagick w/ TIFF & AVIF & WEBP

Build ImageMagick w/ TIFF & AVIF & WEBP

Geared towards ubuntu/mint/debian

Abstracted From: @nickferrando - https://gist.github.com/nickferrando/fb0a44d707c8c3efd92dedd0f79d2911

Prerequisites

sudo apt install libavif-dev libtiff-dev build-essential libpng-dev libheif-dev libwebp-dev

Get ImageMagick

git clone https://github.com/ImageMagick/ImageMagick.git
cd ImageMagick

list tags

git tag

in this example we'll use the latest 7.1.2

git checkout 7.1.2-28

Configure/Make/Install

I install to /opt here, because I don't want it to interfere with the default install.

./configure --disable-shared --prefix=/opt/ImageMagick/7.1.2-28

make it, nproc is your processing units, runs make in parallel

make -j$(nproc)

should return

DELEGATES         = heic jbig jng jpeg lcms lzma png ps tiff video webp x xml zip zlib zstd
                    ^                                   ^          ^
                    |                                   |          +- WEBP Support
                    |                                   +- TIFF Support
                    +- AVIF Support

install

sudo make install

test

/opt/ImageMagick/7.1.2-28/bin/magick --version

should return

Version: ImageMagick 7.1.2-28 Q16-HDRI x86_64 f55e39808:20260726 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/license/
Features: Cipher DPC HDRI OpenMP(4.5) 
Delegates (built-in): heic jbig jng jpeg lcms lzma png webp x xml zip zlib zstd
Compiler: gcc (13.3)

You can add it to your PATH in your ~/.bashrc

export PATH=/opt/ImageMagick/7.1.2-28/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment