Center image in white

This commit is contained in:
Matt McWilliams 2021-08-07 12:15:12 -04:00
parent 86f22d8ac5
commit 242c0bbbf7
1 changed files with 17 additions and 0 deletions

17
white.sh Normal file
View File

@ -0,0 +1,17 @@
WIDTH=404
HEIGHT=374
#40.5
#66
#FWIDTH=323
#FHEIGHT=242
#800x800 white in center of image
#convert image.jpg -background white -gravity center -extent 800x800 output.jpg
convert -size ${WIDTH}x${HEIGHT} xc:#FFFFFF white.png
composite -gravity Center white.png "${1}" "${2}"
rm white.png
echo "Centered in white ${1} -> ${2}"