Skip to content

Commit

Permalink
Try bundled ImageMagick again
Browse files Browse the repository at this point in the history
Now that Ubuntu's upgraded to 24.04 on GitHub Actions, maybe there's an
ImageMagick that's been built sometime in the last century, and my
custom build is no longer working anyway.
  • Loading branch information
brandur committed Dec 12, 2024
1 parent 3ec3fe4 commit b78c7a2
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:

# Paths for various manually installed utilities. Don't try to use $HOME
# because GitHub Actions won't support it.
MAGICK_BIN: /home/runner/imagemagick/bin/magick
MAGICK_BIN: magick
MAGICK_RELEASE: 7.1.1-18
MOZJPEG_BIN: /opt/mozjpeg/bin/cjpeg
PNGQUANT_BIN: /usr/bin/pngquant
Expand Down Expand Up @@ -49,18 +49,8 @@ jobs:
# * WebPs are run through `cbwebp` (which comes from the webp package)
# by ImageMagick.
#
- name: Install PNGQuant + WebP
run: sudo apt-get install pngquant webp

# The copy of ImageMagick we could get from apt-get is ancient and
# doesn't handle niceties like `.heic` files, so here we get a binary
# directly. When Ubuntu is upgraded at some point in the probably-distant
# future, we can probably get rid of this.
- name: Install ImageMagick
run: |
mkdir -p $(dirname "${{ env.MAGICK_BIN }}")
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: Install ImageMagick + PNGQuant + WebP
run: sudo apt-get install imagemagick pngquant webp

- name: ImageMagick format options
run: ${{ env.MAGICK_BIN }} identify -list format
Expand Down

0 comments on commit b78c7a2

Please sign in to comment.