https://github.com/madhead/docker-imagemagick
Dockerized ImageMagick
https://github.com/madhead/docker-imagemagick
convert docker docker-image image-processing imagemagick inkscape rsvg
Last synced: 9 days ago
JSON representation
Dockerized ImageMagick
- Host: GitHub
- URL: https://github.com/madhead/docker-imagemagick
- Owner: madhead
- License: mit
- Created: 2021-10-26T21:49:41.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-21T20:46:45.000Z (over 3 years ago)
- Last Synced: 2025-09-06T10:43:59.370Z (10 months ago)
- Topics: convert, docker, docker-image, image-processing, imagemagick, inkscape, rsvg
- Language: Dockerfile
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- Contributing: .github/CONTRIBUTING.adoc
- Funding: .github/FUNDING.yml
- License: LICENSE.adoc
- Code of conduct: .github/CODE_OF_CONDUCT.adoc
Awesome Lists containing this project
README
= madhead/imagemagick
Simple https://docker.com[Docker] image for hustle-free image conversions with https://imagemagick.org[ImageMagick].
== Usage
First, pull the image:
[source, bash]
----
docker pull madhead/imagemagick:latest
----
Then, do the simple conversions like:
[source, bash]
----
docker run --rm -it -v $(pwd):/src -v $(pwd):/out --user=$(id -u):$(id -g) madhead/imagemagick convert /src/image.svg /out/image.png
----
or more sophisticated ones:
[source, bash]
----
docker run --rm -it -v $(pwd):/src -v $(pwd):/out --user=$(id -u):$(id -g) madhead/imagemagick convert -density 300 /src/document.pdf -background white -alpha remove -quality 90 /out/document.png
----
Read about the available flags, options and switches in the official https://imagemagick.org/script/convert.php[ImageMagick documentation].
http://manpages.ubuntu.com/manpages/precise/en/man1/convert.1.html[Ubuntu's manpage] is great as well.
Docker options are described in details https://docs.docker.com/engine/reference/run[on their site].
== Contributing
Do not hesitate to https://github.com/madhead/imagemagick/issues/new[open an issue] in case you notice any bugs or missing conversion tools or features.
Read the link:.github/CONTRIBUTING.adoc[contributing guide] if you know how to hack and make the image better.