* Ignoring generated js and addding a labeling script

This commit is contained in:
shockrah 2021-10-05 16:28:11 -07:00
parent 8094926278
commit 6670bb7606
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ api/dev/
*.swp
clippable-server/store.json
api/vids/
frontend/themes/clippable/static/js/index.js

12
frontend/scripts/label.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/sh
# Label's a give
msg='No Thumbnail found'
color="fontcolor=white"
size='fontsize=45'
pos='(w-text_w)/2'
rm -f out.gif
ffmpeg -i "$1" -vf \
"drawtext=text='$msg':$color:$size:x=$pos:y=10:"\
out.gif