Skip to content

Instantly share code, notes, and snippets.

@mhulse
Last active March 23, 2019 21:33
Show Gist options
  • Save mhulse/575a4b7e9b03c98e7ee9b79cc72dc4cc to your computer and use it in GitHub Desktop.
Save mhulse/575a4b7e9b03c98e7ee9b79cc72dc4cc to your computer and use it in GitHub Desktop.
Image Magick command to convert images to the images average color and print file name in center of image
magick mogrify \
-colors 1 \
-shave 1x1 \
-bordercolor black \
-border 1 \
-pointsize 48 \
-fill black \
-gravity center \
-annotate +0+0 "%[f]" \
*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment