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))
(if (< (/ 300 width) (/ 300 height))
(* 300 aspect)
(/ 300 aspect)
(gimp-context-set-background '(225 225 225))
(/ (- 320 (car (gimp-drawable-width layer))) 2)
(/ (- 320 (car (gimp-drawable-height layer))) 2))
(gimp-image-resize-to-layers image) ; Uncomment if image should be scaled
"Scale layer per Kumar Kovuru"
"Fit layer in 300x300 with white border"
SF-IMAGE "Image" 0
SF-DRAWABLE "Drawable" 0
Do you mean you want to run the script on multiple images that you have already opened in GIMP? or that you want to run it on multiple images files? (which is what I thought you were asking)
Can we please take this conversation onto one of the proper GIMP forums ( gimpchat.com or gimpforums.com ) because they work much better than this place.
it is totally different i need script code for custom script, i want apply custom script for different images at same time.