✏️ Adjusted output name of resized file
This commit is contained in:
parent
150d565227
commit
4555a2f186
1 changed files with 2 additions and 1 deletions
|
|
@ -11,4 +11,5 @@ if ! command -v gifsicle &> /dev/null ; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
gifsicle "$1" --resize "$2x$3" > "$1_resized.gif"
|
||||
filename=$(echo "${1}" | awk -F. '{ print $1 }')
|
||||
gifsicle "$1" --resize "$2x$3" > "${filename}_resized.gif"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue