Convert multiple jpg into pdf using `imagemagick-docker`

Nitesh Turaga
Apr 4, 2022

--

Use the convert tool on ‘imagemagick’ to convert the jpg files into pdf. Get the docker image from here (dockerhub), instead of installing it locally.

## Pull image
docker pull dpokidov/imagemagick
## Run the convert command
## -v to mount the volume
## --entrypoint to use the command from imagemagick
## jpg files are in /img/input_*.jpg and produce /imgs/output.pdf
docker run --entrypoint=convert \
-v /Documents/local-images/:/imgs dpokidov/imagemagick \
'/imgs/input_*.jpg' /imgs/output.pdf

Hopefully, this helps me reduce some future googling.

--

--

No responses yet