'effects/Vignette-1.sh' ändern

This commit is contained in:
Mike Powell 2018-08-09 07:57:53 +02:00
parent edda90038a
commit bd8953f015

View file

@ -1,2 +1,2 @@
#!/bin/bash
composite -gravity center -resize 3908x2602 grad_vignette_1.png /home/pi/cam.jpg /home/pi/DCIM/$(stat DCIM/* --printf "%i\n" | wc -l).jpg
composite -gravity center -resize 3908x2602 grad_vignette_1.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