Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Bensuperpc <[email protected]>
  • Loading branch information
bensuperpc committed Oct 27, 2021
1 parent 10c28d1 commit 3831fcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions image/image_bit_depth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
#//////////////////////////////////////////////////////////////

if (( $# >= 3 )); then
for var in "$@"
do
convert -depth "$3" +dither "$2" "$1"
done
convert -depth "$3" +dither "$2" "$1"
else
echo "Usage: ${0##*/} <input image file> <ouput image file> <color bit depth (Per chanel)>"
exit 1
Expand Down
5 changes: 1 addition & 4 deletions image/image_resize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
#//////////////////////////////////////////////////////////////

if (( $# >= 3 )); then
for var in "$@"
do
convert -resize "$3" "$1" "$2"
done
convert -resize "$3" "$1" "$2"
else
echo "Usage: ${0##*/} <input image file> <ouput image file> <size (in % or pixel)>"
exit 1
Expand Down

0 comments on commit 3831fcb

Please sign in to comment.