@@ -12,6 +12,9 @@ if [ -e "bg-wide.png" ]; then | |||
echo "Converting ..." | |||
sz=`xdpyinfo | grep dimensions | sed 's:^[^0-9]*\([0-9][0-9]*x[0-9][0-9]*\).*$:\1:'` | |||
convert bg-wide.png -resize "$sz"^ -gravity center -extent "$sz" .bg-wide-scaled.png | |||
convert bg-wide.png -crop 1920x1080+0+0 .bg-wide1.png | |||
convert bg-wide.png -crop 1920x1080+1920+0 .bg-wide2.png | |||
convert bg-wide.png -crop 1920x1080+3840+0 .bg-wide3.png | |||
md5sum bg-wide.png >.bg-wide.md5 | |||
fi | |||