X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=Scripts%2Femote_format;fp=Scripts%2Femote_format;h=6945e3670fe36d981aa6f655b9865de422001181;hp=0000000000000000000000000000000000000000;hb=2894bed4452f6e6f781f8d3b84f6ad6bd40a1e62;hpb=fbb59f2fad421264e4703357595ded05998788ca diff --git a/Scripts/emote_format b/Scripts/emote_format new file mode 100755 index 0000000..6945e36 --- /dev/null +++ b/Scripts/emote_format @@ -0,0 +1,7 @@ +#!/bin/sh + +# format images to be discord size + +mv "$1" "$1_temp" && \ + ffmpeg -i "$1_temp" -vf scale=48:-1 "$1" && \ + rm "$1_temp"