From 5d26515d12a58c45724e09d73ccb38395d868e28 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 8 Nov 2022 18:48:02 -0800 Subject: [PATCH] :sparkles: Added gifsicle and gifpress wrapper script --- scripts/gifpress | 14 ++++++++++++++ updates.txt | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100755 scripts/gifpress diff --git a/scripts/gifpress b/scripts/gifpress new file mode 100755 index 00000000..eadda0d0 --- /dev/null +++ b/scripts/gifpress @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ $# -lt 3 ] ; then + printf "not enough arguments given\n\ +usage: gifpress input.gif width height\n" + exit 1 +fi + +if ! command -v gifsicle &> /dev/null ; then + echo "gifpress not installed!" + exit 1 +fi + +gifsicle "$1" --resize "$2x$3" > "$1_resized.gif" diff --git a/updates.txt b/updates.txt index c1e3868c..ba31ebbb 100644 --- a/updates.txt +++ b/updates.txt @@ -186,6 +186,6 @@ paru dirb (1st option) Go to Chrome store and install CSS Dig on brave -Install slop +Install slop and gifsicle -doas pacman -S slop +doas pacman -S slop gifsicle