-
-
Save antonioJASR/183c41b8eef1aff9566251c1386b7cf9 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env zsh | |
# frame foo.webp bar.png | |
rm -rf framed | |
mkdir framed | |
for img in ${@:1}; do | |
magick "$img" \ | |
-fuzz 1% -trim -bordercolor white -border 100 \ | |
-resize "1024x576" \ | |
-background "#EEE" -compose Copy -gravity center -extent "1600x900" \ | |
"framed/$img" | |
done | |
open framed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment