aboutsummaryrefslogtreecommitdiff
path: root/experiments/crop-melon
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-08 00:57:54 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-08 00:57:54 +0200
commitf431d42a5eb582a190abcd4ca1e12f1e9794f688 (patch)
tree94389535e753ed3aaa597fae23ddf3b53db7e2e4 /experiments/crop-melon
parent4bd0256448a5b0d6f4ecf02f224c48d66d7b4ef4 (diff)
WIP epic title page
Diffstat (limited to 'experiments/crop-melon')
-rwxr-xr-xexperiments/crop-melon10
1 files changed, 10 insertions, 0 deletions
diff --git a/experiments/crop-melon b/experiments/crop-melon
new file mode 100755
index 0000000..5beb634
--- /dev/null
+++ b/experiments/crop-melon
@@ -0,0 +1,10 @@
+#!/bin/sh
+input_file="$1"
+output_base="${input_file%.*}-crop.png"
+magick "$input_file" \
+ -gravity North -chop 0x20 \
+ -crop 256x192 \
+ "$output_base"
+
+
+