source: main/trunk/model-sites-dev/wmtb/images/resize.sh@ 36361

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
Line 
1#!/bin/bash
2
3# Need an arg,
4if [ $# -eq 0 ]
5then
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 exit
10fi
11
12dimension=$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
21pushd orig-fullsize
22mogrify -path ../. -resize ${dimension}x$dimension *.jpg
23popd
Note: See TracBrowser for help on using the repository browser.