我只是在gimp中手动编辑了200多个.PDF文件,我想一次批量导出所有这些文件(在.PDF中),而不是一个一个地导出。
我安装了plugin-registry
,但我不确定在这种情况下是否可以利用它。
我认为我需要的是脚本/控制台命令,但我对Python一无所知。
感谢您的帮助。
答案 0 :(得分:1)
我遇到了同样的问题。我的解决方案是:
如果您喜欢我,并且您希望编辑的输出文件为不同的格式,请使用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"
""
)