Created
February 10, 2019 22:11
-
-
Save robinp/737719fde0b9b804af9224e2abec9f8e to your computer and use it in GitHub Desktop.
Converting image dirs to pdf using imagemagick on Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for /D %%f in (*) do ( | |
cd %%f | |
mkdir annotated | |
magick mogrify -path annotated -set filename:xxx %%t -fill black -undercolor white -gravity southwest -pointsize 24 -annotate +0+0 "%%[filename:xxx]" *png *jpg | |
magick convert annotated/* ../%%~nf.pdf | |
rm -r annotated | |
cd .. | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment