16 lines
374 B
Bash
Executable File
16 lines
374 B
Bash
Executable File
#!/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
|