Skip to content

Instantly share code, notes, and snippets.

@twidi
Created September 14, 2016 19:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save twidi/646f1e863a43f1e1d5db14d2aa768002 to your computer and use it in GitHub Desktop.
Save twidi/646f1e863a43f1e1d5db14d2aa768002 to your computer and use it in GitHub Desktop.
Timelapse preparation: reduce noise on a lot of images
(define (batch-noise-reduction pattern
radii
delta)
(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-sel-gauss RUN-NONINTERACTIVE
image drawable radii delta)
(gimp-file-save RUN-NONINTERACTIVE
image drawable filename filename)
(gimp-image-delete image))
(set! filelist (cdr filelist)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment