Last change
on this file since 36361 was 36361, checked in by kjdon, 21 months ago |
exit after printing out help message
|
-
Property svn:executable
set to
*
|
File size:
583 bytes
|
Rev | Line | |
---|
[34316] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | # Need an arg,
|
---|
| 4 | if [ $# -eq 0 ]
|
---|
| 5 | then
|
---|
| 6 | echo "Run as: $0 [dimension]"
|
---|
| 7 | echo " This will create resized pictures in images folder measuring dim x dim [keeping OAR]"
|
---|
| 8 | echo " of pictures in images/orig-full-size folder"
|
---|
[36361] | 9 | exit
|
---|
[34316] | 10 | fi
|
---|
| 11 |
|
---|
| 12 | dimension=$1
|
---|
| 13 |
|
---|
| 14 | # Want 243 x 130 imgs
|
---|
| 15 | # http://www.imagemagick.org/Usage/resize/#resize
|
---|
| 16 | # http://www.imagemagick.org/discourse-server/viewtopic.php?t=32429
|
---|
| 17 | #mkdir -p images
|
---|
| 18 | #cd images.orig
|
---|
| 19 | #mogrify -path ../images -resize 243x243 *-screenview.jpg
|
---|
| 20 |
|
---|
| 21 | pushd orig-fullsize
|
---|
| 22 | mogrify -path ../. -resize ${dimension}x$dimension *.jpg
|
---|
| 23 | popd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.