This repository has been archived on 2020-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
2010-05-28 15:43:57 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-05-31 19:02:04 +02:00
|
|
|
ORIGSIZE=1039
|
|
|
|
ORIGLX=116
|
|
|
|
ORIGLY=201
|
|
|
|
ORIGRX=1446
|
|
|
|
ORIGRY=361
|
|
|
|
NEWSIZE=460
|
2010-05-28 15:43:57 +02:00
|
|
|
|
|
|
|
for f in $*; do
|
|
|
|
echo "Converting $f"
|
|
|
|
i=`basename $f .jpg`
|
2010-05-31 19:02:04 +02:00
|
|
|
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
|
2010-05-28 15:43:57 +02:00
|
|
|
done
|