14 lines
177 B
Bash
14 lines
177 B
Bash
#!/bin/sh
|
|
|
|
process () {
|
|
x="$1";
|
|
echo "$x";
|
|
convert "$x" -fuzz 7% -trim +repage tmp && mv tmp "$x"
|
|
}
|
|
|
|
while read x; do
|
|
process "$x";
|
|
done
|
|
for x in $@; do
|
|
process "$x";
|
|
done
|