HUB
Sign inSign up
magick logo

ragedunicorn/magick

By ragedunicorn

•Updated 19 days ago

Public repository for ragedunicorn docker magick images

Image
Developer tools
0

580

ragedunicorn/magick repository overview

⁠ImageMagick Alpine Docker Image

Docker Magick

A lightweight ImageMagick 7 installation on Alpine Linux with the delegate libraries for common image formats.

⁠Quick Start

# Pull latest version
docker pull ragedunicorn/magick:latest

# Or pull specific version (see the Tags tab for the available versions)
docker pull ragedunicorn/magick:<imagemagick-version>-alpine<alpine-version>-<build>

# Convert an image
docker run -v $(pwd):/tmp/workdir ragedunicorn/magick:latest input.png output.jpg

On Windows, use the PowerShell form - ${PWD} with braces and the colon inside the quotes (without braces PowerShell parses $PWD: as a scope-qualified variable, as in $env:PATH, and rejects the argument):

# Convert an image
docker run -v "${PWD}:/tmp/workdir" ragedunicorn/magick:latest input.png output.jpg

⁠Features

  • 🚀 Small footprint: Alpine Linux base with only the needed format delegates
  • 📦 ImageMagick 7: The modern magick CLI (legacy convert/identify/mogrify entry points included)
  • 🖼️ Common format support: JPEG, PNG, GIF, WebP, HEIC/AVIF (read), SVG, TIFF
  • 🔤 Text rendering: DejaVu fonts included, so -annotate and label: work out of the box
  • 🔒 Non-root: Runs as the unprivileged magick user by default
  • 🏗️ Multi-platform: Supports linux/amd64 and linux/arm64

⁠Supported Formats

Built-in: PNG, GIF, BMP Delegates: JPEG (libjpeg-turbo), WebP (libwebp), HEIC/HEIF and AVIF (libheif, read), SVG (librsvg), TIFF (libtiff) Not included: PDF/PostScript (ghostscript), JPEG XL, RAW, OpenEXR

⁠Usage Examples

⁠Convert image format
docker run -v $(pwd):/tmp/workdir ragedunicorn/magick:latest \
  input.png output.jpg

PowerShell:

docker run -v "${PWD}:/tmp/workdir" ragedunicorn/magick:latest `
  input.png output.jpg
⁠Resize an image
docker run -v $(pwd):/tmp/workdir ragedunicorn/magick:latest \
  input.jpg -resize 50% output.jpg

PowerShell:

docker run -v "${PWD}:/tmp/workdir" ragedunicorn/magick:latest `
  input.jpg -resize 50% output.jpg
⁠Create a thumbnail
docker run -v $(pwd):/tmp/workdir ragedunicorn/magick:latest \
  input.jpg -thumbnail 150x150 thumbnail.jpg

PowerShell:

docker run -v "${PWD}:/tmp/workdir" ragedunicorn/magick:latest `
  input.jpg -thumbnail 150x150 thumbnail.jpg
⁠Convert iPhone photos (HEIC to JPEG)
docker run -v $(pwd):/tmp/workdir ragedunicorn/magick:latest \
  photo.heic photo.jpg

PowerShell:

docker run -v "${PWD}:/tmp/workdir" ragedunicorn/magick:latest `
  photo.heic photo.jpg

⁠Tags

This image uses semantic versioning that includes all component versions:

Format: {imagemagick_version}-alpine{alpine_version}-{build_number}

⁠Version Examples

W.X.Y.Z is the 4-part ImageMagick version, A.B.C the Alpine version:

  • W.X.Y.Z-alpineA.B.C-1 - ImageMagick W.X.Y.Z on Alpine A.B.C, first build
  • W.X.Y.Z-alpineA.B.C-2 - Rebuild of same versions (bug fixes, security patches)
  • W.X.Y.Z-alpineA.B.D-1 - Alpine Linux patch update
  • W.X.Y.Q-alpineA.B.C-1 - ImageMagick version update (build resets to 1)
  • W.X.Y.Z - Most recent build of ImageMagick W.X.Y.Z
  • latest - Most recent stable release

The available versions are listed in the Tags tab⁠.

When updates are available through automated dependency management, new releases are created with appropriate version tags.

⁠License

MIT License - See GitHub repository⁠ for details.

Tag summary

Content type

Image

Digest

sha256:e4ca5de85…

Size

31.4 MB

Last updated

19 days ago

docker pull ragedunicorn/magick