Skip to content

Instantly share code, notes, and snippets.

@sepastian
Created May 25, 2020 15:36
Show Gist options
  • Save sepastian/23f106cab4fae99454211ae4e600071c to your computer and use it in GitHub Desktop.
Save sepastian/23f106cab4fae99454211ae4e600071c to your computer and use it in GitHub Desktop.
Annotate images in parallel
# Annotate images with respective filename.
# Note: quotes must be escaped, or parallel will 'swallow' them...
find height_1000 -type f -name '*png' \
| parallel convert \
-verbose \
-background \'#0009\' \
-gravity center \
-fill white \
caption:\"{/}\" \
{} \
+swap \
-gravity south \
-composite {.}.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment