aboutsummaryrefslogtreecommitdiff
path: root/experiments/conv/crop
blob: 072bb753454ffdc86c8278c7d58ebdb09257d8a2 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
input_file="$1"
output_file="${input_file%.*}-crop.png"
magick "$input_file" \
	-resize 256x80^ \
	-gravity center -extent 256x80 \
	"$output_file"