我可以用 C 编写一个终端程序来在 GIMP [macOS] 中编辑照片吗?

标签 c terminal gimp

我正在使用相同的步骤编辑一大批照片,并想创建一个程序来通过终端运行,为我运行该过程。我很习惯用 C 语言编写,但我不确定如何开始编写代码/使用什么命令。

当我在 GIMP 中时,我首先打开一个 .xcf 文件,然后导入我希望编辑的照片作为底层。接下来,我将图层大小调整为 1000 像素宽。之后,我使用保存的预设编辑曲线,然后对亮度控件执行相同操作。最后,我将文件导出为具有特定名称的 .png:01-0xx.png,基于集合中照片的编号。

最佳答案

这听起来像是 Gimp 中可用的宏或自动化工具的工作:

引用:Gimp 自动编辑 https://www.gimp.org/tutorials/Automate_Editing_in_GIMP/

This tutorial will describe and provide examples for two types of automation functions. The first function is a tool to capture and execute “Macro” commands. The second function is a set of Automation Tools to capture and run a “Flow” or “Process”. The code for this tutorial is written using Gimp-Python and should be platform portable – able to run on either Linux or Windows operating systems. *

The goal of these functions is to provide tools that speed up the editing process, make the editing process more repeatable, and reduce the amount of button pushing the user has to do. Taking over the button pushing and book-keeping chores allows the user to focus on the more creative part of the editing process.

我从未使用过 GIMP,但此类程序通常具有自动化脚本支持,这是正确的起点。

关于我可以用 C 编写一个终端程序来在 GIMP [macOS] 中编辑照片吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58685693/

相关文章:

c - 为什么函数 'lower' 的返回类型和输入类型都是 int?

c - 使用 memfd_create 和 fexecve 从内存运行 ELF

c - INT_MAX+1 = INT_MIN 是有符号整数吗?

python - 如何在 python-curses 中制作滚动菜单

关于 png 图像的 Android 内存不足

C 计算器,有很多函数 in 函数 in 函数

image - 根据图像大小重命名图像的 Bash 脚本?

Eclipse 终端不更新/行为奇怪

python - 在 GIMP 中的路径上附加文本

scheme - 如何使用 GIMP Script-Fu 导出扁平化图像