diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-05 00:08:43 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-05 00:08:43 +0200 |
commit | c6fcdf6d65b3f9c6693cdc4bf971083c7ced687d (patch) | |
tree | 3d85dfed5a1d1d997c921a12f548b85fbf2ab66c /experiments/conv/crop | |
parent | 2128ad182721b25ec349afd8dbe124d68f8aaee3 (diff) |
add bin2h and crop
Diffstat (limited to 'experiments/conv/crop')
-rwxr-xr-x | experiments/conv/crop | 8 |
1 files changed, 8 insertions, 0 deletions
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" + |