This commit is contained in:
Михаил Капелько
2024-06-18 23:47:40 +03:00
parent ea77aca439
commit 5f16411b97
14 changed files with 74 additions and 14 deletions

11
im-crop Executable file
View File

@@ -0,0 +1,11 @@
IMG=$1
CELL=25
DX=$6
DY=$7
DW=$8
DH=$9
X=$(($2 * $CELL + $DX))
Y=$(($3 * $CELL + $DY))
W=$(($4 * $CELL + $DW))
H=$(($5 * $CELL + $DH))
magick $IMG -crop ${W}x${H}+${X}+${Y} crop.$IMG