Batch export all open windows to Gimp

I have only manually edited 200+ .PDF files in gimp and I would like to export all of them at once (to .PDF) instead of exporting one at a time.

I have it installed plugin-registry

, but I'm not sure if I can use it in this case.

I think I need a script / console command, but I don't know anything about Python.

Thank you for your help.

+3


source to share


1 answer


I have the same problem. My solution was:



  • copy images to subdirectory
  • open all copied images and edit them however you want.
  • use the provided saveALL.scm script file (I can't remember where I found it). this script will overwrite open files, but keep your changes on all open images.
  • if you are like me and you want the edited output file in a different format, follow ImageMagic and convert all files to a subdirectory using the mogrify function.

    ; 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))) 
          (gimp-file-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/Save ALL" 
     "Save all opened images" 
     "Saul Goode" 
     "Saul Goode" 
     "11/21/2006" 
     "" 
     ) 
    
          

+1


source







All Articles