You are here

Batch Script For Custom code?

i have Custom script , it is working as per my requirements and now i want script code for apply same script for different images in same time?
the following code is custom code, could you check it once and add batch process code to following Script

(define (script-fu-sg-kumar-kovuru image layer)
(let* ((width (car (gimp-drawable-width layer)))
(height (car (gimp-drawable-height layer)))
(aspect (/ height width))
(gimp-image-undo-group-start image)
(if (< (/ 300 width) (/ 300 height))
(gimp-layer-scale layer
(* 300 aspect)
(gimp-layer-scale layer
(/ 300 aspect)
(gimp-context-set-background '(225 225 225))
(gimp-layer-resize layer
(/ (- 320 (car (gimp-drawable-width layer))) 2)
(/ (- 320 (car (gimp-drawable-height layer))) 2))
(gimp-layer-flatten layer)
(gimp-image-resize-to-layers image) ; Uncomment if image should be scaled
(gimp-image-undo-group-end image)
(script-fu-register "script-fu-sg-kumar-kovuru"
"Scale layer per Kumar Kovuru"
"Fit layer in 300x300 with white border"
"Saul Goode"
"Saul Goode"
"September 2013"
SF-IMAGE "Image" 0
SF-DRAWABLE "Drawable" 0

(script-fu-menu-register "script-fu-sg-kumar-kovuru"

Already answered

Please stop posting the same request multiple times. I've already answered you here:

Subscribe to Comments for "Batch Script For Custom code?"