Skip to content

dstmodders/docker-imagemagick

Repository files navigation

docker-imagemagick

Debian Size Alpine Size CI Build

ImageMagick Logo

Supported tags and respective Dockerfile links

Overview

Docker images for both the latest and legacy ImageMagick versions.

They are meant to be used as the base for other Docker images, much like how we use them in use them in our own endeavors such as dstmodders/docker-ktools. However, you can use them directly as well.

Usage

For the latest ImageMagick 7:

$ docker pull dstmodders/imagemagick:latest
# or
$ docker pull ghcr.io/dstmodders/imagemagick:latest

For the latest legacy ImageMagick 6:

$ docker pull dstmodders/imagemagick:legacy
# or
$ docker pull ghcr.io/dstmodders/imagemagick:legacy

See tags for a list of all available versions.

Shell/Bash (Linux & macOS)

$ docker run --rm -v "$(pwd):/data/" dstmodders/imagemagick magick input.gif -negate output.gif

CMD (Windows)

> docker run --rm -v "%CD%:/data/" dstmodders/imagemagick magick input.gif -negate output.gif

PowerShell (Windows)

PS:\> docker run --rm -v "${PWD}:/data/" dstmodders/imagemagick magick input.gif -negate output.gif

Supported environment variables

Name Image Value Description
IMAGEMAGICK_VERSION latest
legacy
7.1.1-39
6.9.13-17
ImageMagick version

Supported build arguments

Name Image Default Description
IMAGEMAGICK_VERSION latest
legacy
7.1.1-39
6.9.13-17
Sets ImageMagick version

Supported architectures

Image Architecture(s)
latest linux/amd64, linux/386, linux/arm64, linux/arm/v7
legacy linux/amd64, linux/386, linux/arm64, linux/arm/v7

Build

To build images locally:

$ docker build --tag='dstmodders/imagemagick:alpine' ./latest/alpine/
$ docker build --tag='dstmodders/imagemagick:debian' ./latest/debian/
$ docker build --tag='dstmodders/imagemagick:legacy-alpine' ./legacy/alpine/
$ docker build --tag='dstmodders/imagemagick:legacy-debian' ./legacy/debian/

Respectively, to build multi-platform images using buildx:

$ docker buildx build --platform='linux/amd64,linux/386,linux/arm64,linux/arm/v7' --tag='dstmodders/imagemagick:alpine' ./latest/alpine/
$ docker buildx build --platform='linux/amd64,linux/386,linux/arm64,linux/arm/v7' --tag='dstmodders/imagemagick:debian' ./latest/debian/
$ docker buildx build --platform='linux/amd64,linux/386,linux/arm64,linux/arm/v7' --tag='dstmodders/imagemagick:legacy-alpine' ./legacy/alpine/
$ docker buildx build --platform='linux/amd64,linux/386,linux/arm64,linux/arm/v7' --tag='dstmodders/imagemagick:legacy-debian' ./legacy/debian/

License

Released under the MIT License.