From 16723078e83ed92cd9069506dd1077b836477355 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Mon, 31 May 2010 19:02:04 +0200 Subject: [PATCH] Use different image size, crop the borders. --- resize-images.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/resize-images.sh b/resize-images.sh index ee9862d..981c700 100755 --- a/resize-images.sh +++ b/resize-images.sh @@ -1,15 +1,15 @@ #!/bin/sh -ORIGSIZE=1041 -ORIGLX=115 -ORIGLY=200 -ORIGRX=1445 -ORIGRY=360 -NEWSIZE=500 +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" -bordercolor snow4 -border 1 "$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"+"$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