From c6fcdf6d65b3f9c6693cdc4bf971083c7ced687d Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 5 Oct 2024 00:08:43 +0200 Subject: add bin2h and crop --- experiments/conv/crop | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 experiments/conv/crop (limited to 'experiments/conv/crop') diff --git a/experiments/conv/crop b/experiments/conv/crop new file mode 100755 index 0000000..072bb75 --- /dev/null +++ b/experiments/conv/crop @@ -0,0 +1,8 @@ +#!/bin/sh +input_file="$1" +output_file="${input_file%.*}-crop.png" +magick "$input_file" \ + -resize 256x80^ \ + -gravity center -extent 256x80 \ + "$output_file" + -- cgit v1.2.3