From 88d0eb2cb10de0a582cfbd3666f842d91b308bd6 Mon Sep 17 00:00:00 2001 From: jan Date: Wed, 19 Jan 2022 19:57:35 +0100 Subject: [PATCH] Added cleanup --- vithumbs.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vithumbs.sh b/vithumbs.sh index 22e6d44..b2a94d1 100755 --- a/vithumbs.sh +++ b/vithumbs.sh @@ -81,3 +81,6 @@ finalheight=$(echo "$scaledheight+$METADATA_PX" | bc) ffmpeg -f lavfi -i color=0x282828:${SIZE}x${finalheight} -i ${TMPDIR}tiled_resized.png \ -filter_complex "[0:v][1:v] overlay=0:$METADATA_PX,drawtext=$FONT:fontsize=20:fontcolor=0xEEEEEE:line_spacing=5:x=12:y=12:textfile=${TMPDIR}metadata.txt" \ -vframes 1 th${RANDOM}.png + +# Clean tempfiles +rm -r $TMPDIR \ No newline at end of file