added useful gimp script, added better checking for nechung in rev control.
authorChris Koeritz <fred@gruntose.com>
Mon, 16 Apr 2012 19:28:34 +0000 (15:28 -0400)
committerChris Koeritz <fred@gruntose.com>
Mon, 16 Apr 2012 19:28:34 +0000 (15:28 -0400)
scripts/gimp/batch-whiteboard-clean.scm [new file with mode: 0644]
scripts/gimp/how_to_use_whiteboard_cleaner_script.txt [new file with mode: 0644]
scripts/rev_control/checkin.sh
scripts/rev_control/getem.sh

diff --git a/scripts/gimp/batch-whiteboard-clean.scm b/scripts/gimp/batch-whiteboard-clean.scm
new file mode 100644 (file)
index 0000000..90e597e
--- /dev/null
@@ -0,0 +1,16 @@
+(define (batch-whiteboard-clean pattern)
+  (let* ((filelist (cadr (file-glob pattern 1))))
+    (while (not (null? filelist))
+           (let* ((filename (car filelist))
+                  (image (car (gimp-file-load RUN-NONINTERACTIVE
+                                              filename filename)))
+                  (drawable (car (gimp-image-get-active-layer image))))
+             (plug-in-dog RUN-NONINTERACTIVE
+                                   image drawable 6.0 2.0 FALSE TRUE)
+             (plug-in-c-astretch RUN-NONINTERACTIVE
+                                   image drawable)
+            (gimp-file-save RUN-NONINTERACTIVE
+                             image drawable filename filename)
+             (gimp-image-delete image))
+           (set! filelist (cdr filelist)))))
+
diff --git a/scripts/gimp/how_to_use_whiteboard_cleaner_script.txt b/scripts/gimp/how_to_use_whiteboard_cleaner_script.txt
new file mode 100644 (file)
index 0000000..2862cfb
--- /dev/null
@@ -0,0 +1,6 @@
+gimp -i -b '(batch-whiteboard-clean "*.png")' -b '(gimp-quit 0)'
+
+# from sites:
+#   http://matthew.mceachen.us/blog/how-to-clean-up-photos-of-whiteboards-with-gimp-403.html
+#   http://registry.gimp.org/node/19822
+
index 04badac685c34bbab292e6b83731d2ac3e942f38..df4051244dc33da59f40f9ea5320c37a9b58fc0d 100644 (file)
@@ -2,6 +2,7 @@
 
 # checks in all the folders present in the REPOSITORY_LIST variable.
 
+source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
 source "$FEISTY_MEOW_SCRIPTS/rev_control/rev_control.sh"
 
 # selects the method for check-in based on where we are.
index f493ddbaa0877680d94ddd7079612faf5bb3d9b8..fb55334812289f1c8b3fe127caebad409e60ac27 100644 (file)
@@ -2,6 +2,7 @@
 
 # gets any updates for the repository folders present in the REPOSITORY_LIST variable.
 
+source "$FEISTY_MEOW_SCRIPTS/core/functions.sh"
 source "$FEISTY_MEOW_SCRIPTS/rev_control/rev_control.sh"
 
 # trickery to ensure we can always update this file, even when the operating system has some