Skip to content

Instantly share code, notes, and snippets.

@antonioJASR
Forked from chadwhitacre/frame
Created January 20, 2024 19:09
Show Gist options
  • Save antonioJASR/183c41b8eef1aff9566251c1386b7cf9 to your computer and use it in GitHub Desktop.
Save antonioJASR/183c41b8eef1aff9566251c1386b7cf9 to your computer and use it in GitHub Desktop.
#!/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