Skip to content

Commit

Permalink
Switch back to self-built ImageMagick + HEIC support (#341)
Browse files Browse the repository at this point in the history
Worse than using the official release maybe, but comes with HEIC
support, and possibly a little faster since it's downloaded from GitHub
Actions.

Previously I'd been using a self-built binary, but started getting this
error:

    Run /home/runner/imagemagick/bin/magick identify -list format
    /home/runner/imagemagick/bin/magick: symbol lookup error: /home/runner/imagemagick/bin/magick: undefined symbol: heif_deinit

It appears that the cause was that I'd slipped to using a version of
libheif that was too old, and ImageMagick just has godawful error
messages. Since writing imagemagick-builder, it appears that the
repositories for libheif-dev and libde265-dev have been mainlined,
allowing me to decouple from the 3rd party repositories that I'd been
using and which had become outdated, and go to better maintained,
built-in versions [1]. Doing so fixed the problem above.

This patch also brings back support for HEIC.

[1] brandur/imagemagick-builder@895a6a1
  • Loading branch information
brandur committed Sep 26, 2023
1 parent 736a911 commit 65eadb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Install ImageMagick
run: |
mkdir -p $(dirname "${{ env.MAGICK_BIN }}")
curl --compressed -L -o "${{ env.MAGICK_BIN }}" https://github.com/ImageMagick/ImageMagick/releases/download/${{ env.MAGICK_RELEASE }}/ImageMagick--clang-x86_64.AppImage
curl --compressed -L -o "${{ env.MAGICK_BIN }}" https://github.com/brandur/imagemagick-builder/releases/download/${{ env.MAGICK_RELEASE }}/magick
chmod +x "${{ env.MAGICK_BIN }}"
- name: ImageMagick format options
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
- name: Install ImageMagick
run: |
mkdir -p $(dirname "${{ env.MAGICK_BIN }}")
curl --compressed -L -o "${{ env.MAGICK_BIN }}" https://github.com/ImageMagick/ImageMagick/releases/download/${{ env.MAGICK_RELEASE }}/ImageMagick--clang-x86_64.AppImage
curl --compressed -L -o "${{ env.MAGICK_BIN }}" https://github.com/brandur/imagemagick-builder/releases/download/${{ env.MAGICK_RELEASE }}/magick
chmod +x "${{ env.MAGICK_BIN }}"
# See notes in check_and_test.
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
- name: Install ImageMagick
run: |
mkdir -p $(dirname "${{ env.MAGICK_BIN }}")
curl --compressed -L -o "${{ env.MAGICK_BIN }}" https://github.com/ImageMagick/ImageMagick/releases/download/${{ env.MAGICK_RELEASE }}/ImageMagick--clang-x86_64.AppImage
curl --compressed -L -o "${{ env.MAGICK_BIN }}" https://github.com/brandur/imagemagick-builder/releases/download/${{ env.MAGICK_RELEASE }}/magick
chmod +x "${{ env.MAGICK_BIN }}"
# See notes in check_and_test.
Expand Down

0 comments on commit 65eadb0

Please sign in to comment.