summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-12-17 14:48:28 -0500
committerAndrew Cady <d@jerkface.net>2020-12-17 14:48:28 -0500
commit4bdc26bef9ab92d12b96d7d5344bc2b50e56f9cc (patch)
treec8172f93a850c56ac8409b544164bfcd91c192b8
parentdbf38e8d05191dc1a15d4fafedccf7c3a1b61e2b (diff)
marginate: twitter aspect ratio
-rwxr-xr-xdot/local/bin/marginate6
1 files changed, 5 insertions, 1 deletions
diff --git a/dot/local/bin/marginate b/dot/local/bin/marginate
index 9c075c8..e62410c 100755
--- a/dot/local/bin/marginate
+++ b/dot/local/bin/marginate
@@ -1,6 +1,10 @@
1#!/bin/sh 1#!/bin/sh
2 2
3options='-gravity center -extent 140%x140%' 3margin=100
4aspect_ratio=177
5
6extent=$((margin * aspect_ratio / 100))%x${margin}%
7options="-gravity center -extent $extent"
4 8
5for input 9for input
6do 10do