You are here

Whiteboard clean-up

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Rate this item!
batch-whiteboard-clean.scm781 bytes

A batch script to clean up whiteboard photos.

(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))))
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)))))

Code License: 
GIMP Version: 
Scripting Engine: 


Thanks for this ! Easier to manage the whiteboard photos. I'm Marilyn from Singapore who own the college help website, I'm new to here but not to GIMP.

As an "old-school" photographer (darkrooms and chemicals) I used to use different combinations of papers, developers and chemical toners to achieve decent duotone photographs. I love Split Studio 3 plugin although it doesn't have the smells and sensations of the aforementioned methods, it produces similar results very quickly.

I've used other digital duotone methods before but none have managed to maintain the tonality of the original as well as this one. I will use it frequently.

Thank you spoilt_exile for all the hard work. (If I remembered correctly)

To run the scrip use:
gimp -i -b '(batch-whiteboard-clean "*.JPG")' -b '(gimp-quit 0)'

Subscribe to Comments for "Whiteboard clean-up"