https://github.com/avitase/docker-imagemagick
Docker container exposing Ubuntu's default installation of imagemagick.
https://github.com/avitase/docker-imagemagick
docker-image imagemagick
Last synced: 11 months ago
JSON representation
Docker container exposing Ubuntu's default installation of imagemagick.
- Host: GitHub
- URL: https://github.com/avitase/docker-imagemagick
- Owner: avitase
- Created: 2018-09-10T14:57:18.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T10:09:10.000Z (over 7 years ago)
- Last Synced: 2025-04-06T07:39:52.487Z (about 1 year ago)
- Topics: docker-image, imagemagick
- Language: Dockerfile
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker-Imagemagick

The container exposes Ubuntu's default installation of [imagemagick](https://www.imagemagick.org/script/index.php).
You can use `convert` for instance as
```
> docker run --rm -it avitase/docker-imagemagick:latest /bin/bash -c "convert --version"
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
```
We provide a script [convert.sh](convert.sh) that mounts your current working dir to `/workdir` and calls `imagemagick`'s `convert` with the arguments that you prepend to the bash script, e.g.
```
./convert.sh --version
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
```
This script might help you to achieve more fancy stuff, such as
```
> ls
test.pdf
> ./convert.sh -density 600 -trim -transparent white test.pdf test.png && ls
test.pdf test.png
```
## Docker Pull Command
The container is accessible via the [Docker Hub](https://hub.docker.com/r/avitase/docker-imagemagick/): `docker pull avitase/docker-imagemagick`.