-
-
Save mahadazad/6a27d3f000ce3505d2de10692a89ea2f to your computer and use it in GitHub Desktop.
Squares up rectangular images by filling empty space with blur of same image
This file contains hidden or 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
convert $1 -resize 826x826^ -gravity center -crop 826x826+0+0 +repage -blur 0x8 temp.jpg | |
convert temp.jpg $1 -resize 826x -gravity center -composite -matte "./output/$1-out.jpg" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment