Use different image size, crop the borders.
This commit is contained in:
parent
91d2612cd1
commit
16723078e8
|
@ -1,15 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
ORIGSIZE=1041
|
ORIGSIZE=1039
|
||||||
ORIGLX=115
|
ORIGLX=116
|
||||||
ORIGLY=200
|
ORIGLY=201
|
||||||
ORIGRX=1445
|
ORIGRX=1446
|
||||||
ORIGRY=360
|
ORIGRY=361
|
||||||
NEWSIZE=500
|
NEWSIZE=460
|
||||||
|
|
||||||
for f in $*; do
|
for f in $*; do
|
||||||
echo "Converting $f"
|
echo "Converting $f"
|
||||||
i=`basename $f .jpg`
|
i=`basename $f .jpg`
|
||||||
convert $f -crop "$ORIGSIZE"x"$ORIGSIZE"+"$ORIGLX"+"$ORIGLY" +repage -resize "$NEWSIZE"x"$NEWSIZE" -bordercolor snow4 -border 1 "$i"-l.png
|
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" -bordercolor snow4 -border 1 "$i"-r.png
|
convert $f -crop "$ORIGSIZE"x"$ORIGSIZE"+"$ORIGRX"+"$ORIGRY" +repage -resize "$NEWSIZE"x"$NEWSIZE" "$i"-r.png
|
||||||
done
|
done
|
||||||
|
|
Reference in New Issue