4

200 以上の .PDF ファイルを gimp で手動で編集したところ、1 つずつエクスポートするのではなく、それらすべてを一度に (.PDF で) バッチ エクスポートしたいと考えています。

plugin-registryインストールしましたが、この場合に利用できるかどうかはわかりません。

必要なのはスクリプト/コンソールコマンドだと思いますが、Pythonについては何も知りません。

ご協力いただきありがとうございます。

4

1 に答える 1

1

私は同じ問題を抱えています。私の解決策は次のとおりです。

  1. 画像をサブディレクトリにコピー
  2. コピーしたすべての画像を開き、必要に応じて編集します。
  3. 以下に示す saveALL.scm スクリプトを使用します (どこで見つけたか思い出せません)。このスクリプトは、開いているファイルを上書きしますが、開いているすべての画像の編集を保存します。
  4. あなたが私のようで、編集した出力ファイルを別の形式にしたい場合は、ImageMagic をフォローアップし、mogrify 関数を使用してサブディレクトリ内のすべてのファイルを変換してください。

    ; 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" 
     "" 
     ) 
    
于 2016-05-01T20:50:04.210 に答える