From 86c811b0e714a33708e8f29d4cb7eca11e7a85f9 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Wed, 30 Oct 2013 23:02:18 +0100 Subject: [PATCH] Added script for removing letterbox borders --- scripts/remove-letterbox.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 scripts/remove-letterbox.sh diff --git a/scripts/remove-letterbox.sh b/scripts/remove-letterbox.sh new file mode 100644 index 00000000..e64c6977 --- /dev/null +++ b/scripts/remove-letterbox.sh @@ -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