ImageMagick with Ghostscript, for reading and writing PDF, PostScript and EPS files.
This image is the default image of imagemagick (ghcr.io/randomcontainers/imagemagick:latest), published under its own name. The contents are the same; the digests differ. It contains ImageMagick and Ghostscript, on Ubuntu or Alpine, for linux/amd64 and linux/arm64. Ghostscript is licensed under AGPL-3.0-or-later. Use ghcr.io/randomcontainers/imagemagick:slim if your policy excludes AGPL software.
These are unofficial builds, not affiliated with or endorsed by the upstream projects. Report problems with the image in randomcontainers/imagemagick and problems with a tool itself in that tool's own issue tracker.
docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/work" ghcr.io/randomcontainers/imagemagick-ghostscript input.png -quality 80 output.webpThe examples in the imagemagick README work with this image too.
<version> is the ImageMagick version.
| Tags | Base |
|---|---|
latest, <version>, ubuntu, <version>-ubuntu, <version>-ubuntu26.04 |
Ubuntu 26.04 |
alpine, <version>-alpine, <version>-alpine3.24 |
Alpine 3.24 |
latest and <version> are the Ubuntu 26.04 images. The images are currently built on Ubuntu 26.04 and Alpine 3.24. Tags without a distro version move to the next distro release when the project does; tags ending in ubuntu26.04 or alpine3.24 stay on that release and are no longer rebuilt once the project moves to the next one.
Only the tags of the ImageMagick version currently in imagemagick's package.yml are rebuilt, exact-version tags included, so pin a digest when you need the same bytes every time. Tags of older versions stay as they were last built. The published tags and their digests are listed on the package page.
linux/amd64 and linux/arm64, both built natively on GitHub-hosted runners.
The working directory is /work. The image runs as UID 1000, and any other UID works too: HOME is then /, and caches go to /cache, which anyone can write to. How to get output files owned by you depends on how you run containers:
| Runtime | Flag |
|---|---|
| Docker on Linux (rootful), GitHub Actions | --user "$(id -u):$(id -g)" |
| Rootless Podman | --userns=keep-id |
| Rootless Docker | --user 0:0 (root in the container is your user on the host) |
| Docker Desktop on macOS or Windows | none, file ownership is mapped for you |
| Package | License | Repository |
|---|---|---|
| ImageMagick | ImageMagick AND LGPL-3.0-or-later |
randomcontainers/imagemagick |
| Ghostscript | AGPL-3.0-or-later AND Apache-2.0 AND BSD-3-Clause AND FTL AND ISC AND MIT AND Zlib |
randomcontainers/ghostscript |
Each image has a build provenance attestation from this repository's GitHub Actions run. The run uses the shared build workflow of randomcontainers/ci, which signs the attestation, so name both repositories:
gh attestation verify oci://ghcr.io/randomcontainers/imagemagick-ghostscript:latest \
--repo randomcontainers/imagemagick-ghostscript --signer-repo randomcontainers/ciImages from ghcr.io/randomcontainers/imagemagick are built in randomcontainers/imagemagick, so verify them with --repo randomcontainers/imagemagick --signer-repo randomcontainers/ci.
The images are rebuilt when a new image of a package above is published, for example after an upstream release. They are also rebuilt when the base image changes and at least every 7 days, so distro security fixes reach the current tags. The package repositories describe how each upstream release is picked up.
The image contents are licensed under ImageMagick AND LGPL-3.0-or-later AND AGPL-3.0-or-later AND Apache-2.0 AND BSD-3-Clause AND FTL AND ISC AND MIT AND Zlib. The version of each package is in /usr/local/share/randomcontainers/<package>/version and its license files are in /usr/local/share/randomcontainers/<package>/licenses/.
Corresponding source:
- ImageMagick: randomcontainers/imagemagick has a
v<version>release with the source of each ImageMagick version it builds. - Ghostscript: randomcontainers/ghostscript has a
v<version>release with the source of each Ghostscript version it builds.
Ubuntu and Alpine packages keep their own licenses. The SBOM of each platform image lists them with their versions:
docker buildx imagetools inspect ghcr.io/randomcontainers/imagemagick-ghostscript:latest --format '{{ json .SBOM }}'The files in this repository are available under the MIT license, see LICENSE.
To suggest another tool, use the Request a tool form.
The files here are generated from the combos section of package.yml in randomcontainers/imagemagick. Open issues and pull requests there.