Skip to content

Instantly share code, notes, and snippets.

@lord-carlos
Last active July 20, 2019 10:28
Show Gist options
  • Save lord-carlos/a07ede32567169db13792a6365fe8b25 to your computer and use it in GitHub Desktop.
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
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