[cig-commits] [commit] master: Script for creating the composite images, trim the surrounding white-space, and resizing them to a more manageable size. (52a0e1d)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Fri May 9 15:26:05 PDT 2014
Repository : https://github.com/geodynamics/cigma
On branch : master
Link : https://github.com/geodynamics/cigma/compare/65c02138d3ae8b87c088cc14fe4f98e21e3f0805...a26f592c25c89a40622404999ba1effcdf6df9e3
>---------------------------------------------------------------
commit 52a0e1d2819f11da0de87f327c54fbc770cd1e94
Author: Luis Armendariz <luis>
Date: Sat Mar 28 01:21:49 2009 +0000
Script for creating the composite images, trim the surrounding white-space,
and resizing them to a more manageable size.
>---------------------------------------------------------------
52a0e1d2819f11da0de87f327c54fbc770cd1e94
figures3/bm3/process-images.sh | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/figures3/bm3/process-images.sh b/figures3/bm3/process-images.sh
new file mode 100755
index 0000000..c6a8fba
--- /dev/null
+++ b/figures3/bm3/process-images.sh
@@ -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
+
More information about the CIG-COMMITS
mailing list