Last change
on this file since 34316 was 34316, checked in by ak19, 3 years ago |
Followed Dr Bainbridge's suggestion of a resize script to resize orig-fullsize images when necessary.
|
-
Property svn:executable
set to
*
|
File size:
574 bytes
|
Line | |
---|
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"
|
---|
9 | fi
|
---|
10 |
|
---|
11 | dimension=$1
|
---|
12 |
|
---|
13 | # Want 243 x 130 imgs
|
---|
14 | # http://www.imagemagick.org/Usage/resize/#resize
|
---|
15 | # http://www.imagemagick.org/discourse-server/viewtopic.php?t=32429
|
---|
16 | #mkdir -p images
|
---|
17 | #cd images.orig
|
---|
18 | #mogrify -path ../images -resize 243x243 *-screenview.jpg
|
---|
19 |
|
---|
20 | pushd orig-fullsize
|
---|
21 | mogrify -path ../. -resize ${dimension}x$dimension *.jpg
|
---|
22 | popd
|
---|
Note:
See
TracBrowser
for help on using the repository browser.