diff options
Diffstat (limited to 'dot/local/bin/marginate')
-rwxr-xr-x | dot/local/bin/marginate | 12 |
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 | |||
3 | options='-gravity center -extent 140%x140%' | ||
4 | |||
5 | for input | ||
6 | do | ||
7 | case "$input" in | ||
8 | *.*) output=${input%.*}.margins.${input##*.} ;; | ||
9 | *) output=$input.margins.png ;; | ||
10 | esac | ||
11 | convert "$input" $options "$output" | ||
12 | done | ||