Last active
July 20, 2019 10:28
-
-
Save lord-carlos/a07ede32567169db13792a6365fe8b25 to your computer and use it in GitHub Desktop.
fish loop to resize images to be max 2048px in any size and annotate with name. imagemagick and convert
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
mkdir export | |
for f in *jpg | |
convert $f -resize "2048x2048>" -quality 95 \ | |
-gravity southeast -pointsize 20 \ | |
-stroke '#000C' -strokewidth 2 -annotate 0 'Name ' \ | |
-stroke none -fill white -annotate 0 'Name ' export/$f | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment