Hello. I've found this script, that would supposedly export all open images in batch:
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
; GNU General Public License for more details.
(define (script-fu-save-all-images)
(let* ((i (car (gimp-image-list)))
(image))
(while (> i 0)
(set! image (vector-ref (cadr (gimp-image-list)) (- i 1)))
(file-jpeg-save RUN-NONINTERACTIVE
image
(car (gimp-image-get-active-layer image))
(car (gimp-image-get-filename image))
(car (gimp-image-get-filename image)))
(gimp-image-clean-all image)
(set! i (- i 1)))))
(script-fu-register "script-fu-save-all-images"
"<Image>/File/Export all images"
"Save all opened images"
"Saul Goode"
"Saul Goode"
"11/21/2006"
""
)
I don't even know if it worked back then (2006), I guess it did, but nowadays it's export instead of "save". That little detail I've fixed (replacing gimp-save-image by file-jpeg-save, already in the code), but more work is needed to make it work, and I'm quite clueless.
The error message I receive is:
Quote:
Execution error for 'Export all images':
Error: (<unknown> : 142662924) Invalid number of arguments for file-jpeg-save (expected 14 but received 5)
It would be really good if we could get it to batch-export with automatic renaming/numbering, but I guess that would require a feature from the GTK file dialog itself, unfortunately. But even just popping-up the export dialogs all at once would be handier than doing it manually when you're editing multiple images.
Can anyone help me, please? Perhaps point me to some other script that sort of does something like that, so I could make a functional frankenstein-script with the inferred missing parts.