wbcachemake (606B)
1 #!/bin/sh -x 2 # usage: wbcachemake 3 4 cache=$HOME/general/cache/ 5 6 donorm(){ 7 [ "$args" = "" ] && { 8 convert $file -sparse-color Barycentric '0,0 black 0,%h white' -function polynomial 3.5,-3.2,1.15 /tmp/blurmap.png 9 convert $file /tmp/blurmap.png -compose Blur -set option:compose:args 9 -composite $1 10 } || { 11 convert $file $args $1 12 } 13 files="$files $1" 14 } 15 16 mkdir -p $cache/wallblur 17 18 files=$(find images/wallpapers/ -type f -name "*.png") 19 20 for file in $files 21 do 22 [ ! -f $cache/wallblur/$(basename "$file") ] && { 23 echo $file start 24 donorm "$cache/wallblur/$(basename $file)" 25 echo $file done 26 } 27 done