Convert multiple jpg into pdf using `imagemagick-docker`

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.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store