【问题标题】:Batch export all open windows in Gimp批量导出 Gimp 中所有打开的窗口
【发布时间】:2014-12-05 04:07:25
【问题描述】:

我刚刚在 gimp 中手动编辑了 200 多个 .PDF 文件,我想一次性(以 .PDF 格式)批量导出所有文件,而不是一个一个地导出。

我安装了plugin-registry,但我不确定在这种情况下是否可以利用它。

我认为我需要的是脚本/控制台命令,但我对 Python 一无所知。

感谢您的帮助。

【问题讨论】:

  • 我遇到了同样的问题。我需要打开一堆文件,然后将它们全部导出。

标签: python gimp script-fu python-fu gimpfu


【解决方案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" 
     "" 
     ) 
    

【讨论】:

  • 非常感谢!这在带有 GIMP 2.8.22 的 MacOS 10.10.5 上对我有用。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-10-27
  • 2015-10-20
  • 1970-01-01
相关资源
最近更新 更多