简体   繁体   English

批量导出Gimp中所有打开的窗口

[英]Batch export all open windows in Gimp

I just manually edited 200+ .PDF files in gimp and I would like to batch export all of them at once (in .PDF) instead of exporting one by one. 我只是在gimp中手动编辑了200多个.PDF文件,我想一次批量导出所有这些文件(在.PDF中),而不是逐个导出。

I have the plugin-registry installed, but I'm not sure if I can take advantage of it in this case. 我安装了plugin-registry ,但我不确定在这种情况下是否可以利用它。

I think what I need is a script / console command, but I know nothing about Python. 我认为我需要的是一个脚本/控制台命令,但我对Python一无所知。

Thanks for your help. 谢谢你的帮助。

I'm having the same problem. 我遇到了同样的问题。 My solution was: 我的解决方案是:

  1. copy images to subdirectory 将图像复制到子目录
  2. open all copied images and edit them how you want. 打开所有复制的图像并按照您的需要进行编辑。
  3. use the saveALL.scm script provided below (i can't remember where i found it). 使用下面提供的saveALL.scm脚本(我不记得我在哪里找到它)。 this script will overwrite opened files, but will save your edits on all opened images. 此脚本将覆盖打开的文件,但会保存对所有打开图像的编辑。
  4. if you're like me and you want to the edited output file to be a different format, follow up with ImageMagic and convert all files in the subdirectory using the mogrify function. 如果你像我一样,并且你想要编辑的输出文件是一个不同的格式,请跟进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" "" ) 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM