summaryrefslogtreecommitdiff
path: root/dot/local/bin/marginate
diff options
context:
space:
mode:
Diffstat (limited to 'dot/local/bin/marginate')
-rwxr-xr-xdot/local/bin/marginate12
1 files changed, 12 insertions, 0 deletions
diff --git a/dot/local/bin/marginate b/dot/local/bin/marginate
new file mode 100755
index 0000000..9c075c8
--- /dev/null
+++ b/dot/local/bin/marginate
@@ -0,0 +1,12 @@
1#!/bin/sh
2
3options='-gravity center -extent 140%x140%'
4
5for input
6do
7 case "$input" in
8 *.*) output=${input%.*}.margins.${input##*.} ;;
9 *) output=$input.margins.png ;;
10 esac
11 convert "$input" $options "$output"
12done