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