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

Last change on this file since 36359 was 34316, checked in by ak19, 4 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,
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"
9fi
10
11dimension=$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
20pushd orig-fullsize
21mogrify -path ../. -resize ${dimension}x$dimension *.jpg
22popd
Note: See TracBrowser for help on using the repository browser.