Added script for removing letterbox borders
This commit is contained in:
parent
ea4c7fac6e
commit
86c811b0e7
1 changed files with 14 additions and 0 deletions
14
scripts/remove-letterbox.sh
Normal file
14
scripts/remove-letterbox.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
process () {
|
||||
x="$1";
|
||||
echo "$x";
|
||||
convert "$x" -fuzz 5% -trim +repage tmp && mv tmp "$x"
|
||||
}
|
||||
|
||||
while read x; do
|
||||
process "$x";
|
||||
done
|
||||
for x in $@; do
|
||||
process "$x";
|
||||
done
|
Loading…
Reference in a new issue