gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 01:16:07 25 4
gpt4 key购买 nike

我正在使用相同的步骤编辑一大批照片,并想创建一个程序来通过终端运行,为我运行该过程。我很习惯用 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com