linuxShortcuts/oxo-gif.sh

10 lines
278 B
Bash
Raw Permalink Normal View History

2023-12-01 22:00:54 +00:00
#!/bin/sh -
[[ -z $1 ]] && echo "Missing filename to convert" && exit 1
file=$1
gif="${file%.*}.gif"
#gifski --fps 10 -Q 70 -H 2000 --repeat 0 -o "$gif" "$file"
gifski --fps 8 -Q 70 -H 2000 --repeat 0 -o "$gif" "$file"
notify-send -a 'Convert to .gif' "Convertion done: $gif"