Anne's hip survey shizzle.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 

15 lines
374 B

#!/bin/sh
ORIGSIZE=1039
ORIGLX=116
ORIGLY=201
ORIGRX=1446
ORIGRY=361
NEWSIZE=460
for f in $*; do
echo "Converting $f"
i=`basename $f .jpg`
convert $f -crop "$ORIGSIZE"x"$ORIGSIZE"+"$ORIGLX"+"$ORIGLY" +repage -resize "$NEWSIZE"x"$NEWSIZE" "$i"-l.png
convert $f -crop "$ORIGSIZE"x"$ORIGSIZE"+"$ORIGRX"+"$ORIGRY" +repage -resize "$NEWSIZE"x"$NEWSIZE" "$i"-r.png
done