From bd8953f015afc174634e7f820b1fb82fac73798a Mon Sep 17 00:00:00 2001 From: Mike Powell Date: Thu, 9 Aug 2018 07:57:53 +0200 Subject: [PATCH] =?UTF-8?q?'effects/Vignette-1.sh'=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- effects/Vignette-1.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/effects/Vignette-1.sh b/effects/Vignette-1.sh index 5895957..b199215 100755 --- a/effects/Vignette-1.sh +++ b/effects/Vignette-1.sh @@ -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