[cig-commits] r14508 - doc/cigma/manual/figures3/bm3

luis at geodynamics.org luis at geodynamics.org
Fri Mar 27 18:21:49 PDT 2009


Author: luis
Date: 2009-03-27 18:21:49 -0700 (Fri, 27 Mar 2009)
New Revision: 14508

Added:
   doc/cigma/manual/figures3/bm3/process-images.sh
Log:
Script for creating the composite images, trim the surrounding white-space,
and resizing them to a more manageable size.

Added: doc/cigma/manual/figures3/bm3/process-images.sh
===================================================================
--- doc/cigma/manual/figures3/bm3/process-images.sh	                        (rev 0)
+++ doc/cigma/manual/figures3/bm3/process-images.sh	2009-03-28 01:21:49 UTC (rev 14508)
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+function download-images
+{
+    local url="http://stress.geodynamics.org/~luis/bm3/inclusion/"
+    wget -q -nc -k -O foo.html ${url}
+    wget -q -nc -F -B ${url} -i foo.html -nd -r -A'*.png'
+    rm -f foo.html
+}
+
+function concatenate-pair
+{
+    montage -tile 2x1 -mode Concatenate $1 $2 $3
+}
+
+function trim-image
+{
+    convert -trim -resize '80%' $1 $1
+}
+
+download-images
+concatenate-pair pressure_512.png velocity_512.png fields_512.png
+trim-image fields_512.png
+


Property changes on: doc/cigma/manual/figures3/bm3/process-images.sh
___________________________________________________________________
Name: svn:executable
   + *



More information about the CIG-COMMITS mailing list