'effects/Vignette-2.sh' ändern

This commit is contained in:
Mike Powell 2018-08-09 07:58:21 +02:00
parent bd8953f015
commit 5e952c728e

View file

@ -1,2 +1,2 @@
#!/bin/bash
composite -gravity center -resize 3908x2602 grad_vignette_2.png /home/pi/cam.jpg /home/pi/DCIM/$(stat DCIM/* --printf "%i\n" | wc -l).jpg
composite -gravity center -resize 3908x2602 grad_vignette_2.png /home/pi/cam.jpg /home/pi/DCIM/$(x="$(ls -v /home/pi/DCIM/| tail -n 1 | sed 's/.jpg//g')"; echo $x+1 | bc).jpg