Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > GIMP (GNU Image Manipulation Program) > guides using gi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3075 of 3157
Post > Topic >>

guides using gimp batch processing gimp-2.4.6 for slicing scanned photos

by Michael Ole Olsen <dont@[EMAIL PROTECTED] > Sep 13, 2008 at 09:47 PM

michael@[EMAIL PROTECTED]
 cat scanguides.scm
; uses guillotine on 4 scanned normal size photos to slice them out into
; 4 new images and save them
;
; use scanguides *.png 0 1 50 50
; filename guide directions and percents
; gimp -i -b '(scanguides "*.png" 0 1 50 50)' -b '(gimp-quit 0)'


(define (scanguides filename direction1 direction2 percent1 percent2)

(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))))
 
                (script-fu-guide-new-percent 0 image drawable direction1
percent1)
                (script-fu-guide-new-percent 0 image drawable direction2
percent2)
                (plug-in-guillotine 0 image drawable)
 
                (gimp-file-save RUN-NONINTERACTIVE image drawable filename
filename)
                (gimp-image-delete image)))

          (set! filelist (cdr filelist))))


any idea what is wrong with this script? 

it should save 4 slices in 4 different files after run.

i just get an "unexpected error" message when running with the above
command.
 




 2 Posts in Topic:
guides using gimp batch processing gimp-2.4.6 for slicing scanne
Michael Ole Olsen <don  2008-09-13 21:47:04 
Re: guides using gimp batch processing gimp-2.4.6 for slicing sc
Niels Giesen <niels.gi  2008-09-26 10:17:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Dec 4 17:55:25 CST 2008.