Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script-fu problem

Status
Not open for further replies.

dgrant79

Programmer
Aug 5, 2005
1
CA
I can't get the script below to work. The command I run is:

gimp-2.2 -i -b '(tone-change-batch "*.JPG" "/home/david/pictures/tones/scott_tones/scott_bwbrown.png")' '(gimp-quit 0)'

bwbrown.png can be any image you like



(define (tone-change-batch pattern
tonefile)
(let* ((filelist (cadr (file-glob pattern 1)))
(dst_drawable (car (gimp-file-load RUN-NONINTERACTIVE
tonefile tonefile))))
(while filelist
(let* ((filename (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE
filename filename)))
(dst_drawable (car (gimp-image-get-active-layer image))))
(plug-in-sample-colorize RUN-NONINTERACTIVE
image dst_drawable sample_drawable
TRUE TRUE TRUE TRUE 0 255 1.0 0 255)
(gimp-file-save RUN-NONINTERACTIVE
image dst_drawable filename filename)
(gimp-image-delete image)
)
(set! filelist (cdr filelist))
)
)
)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top