Skip to content

Commit 3831fcb

Browse files
committed
Fix
Signed-off-by: Bensuperpc <[email protected]>
1 parent 10c28d1 commit 3831fcb

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

image/image_bit_depth.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
#//////////////////////////////////////////////////////////////
2121

2222
if (( $# >= 3 )); then
23-
for var in "$@"
24-
do
25-
convert -depth "$3" +dither "$2" "$1"
26-
done
23+
convert -depth "$3" +dither "$2" "$1"
2724
else
2825
echo "Usage: ${0##*/} <input image file> <ouput image file> <color bit depth (Per chanel)>"
2926
exit 1

image/image_resize.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
#//////////////////////////////////////////////////////////////
2121

2222
if (( $# >= 3 )); then
23-
for var in "$@"
24-
do
25-
convert -resize "$3" "$1" "$2"
26-
done
23+
convert -resize "$3" "$1" "$2"
2724
else
2825
echo "Usage: ${0##*/} <input image file> <ouput image file> <size (in % or pixel)>"
2926
exit 1

0 commit comments

Comments
 (0)