是否可以使用 gimp 脚本从主图片中提取子图片
我有以下图片:
你猜对了:我想将所有小图片提取到单独的文件中。我现在想要的是:
- 是否可以使用 Gimps 脚本接口之一来完成此操作?
- 你会使用“批处理模式”、“Script-Fi”、“插件”还是其他我不知道的东西?
- 如果是:我没有 Gimp 脚本编写经验:需要付出多少努力来学习所需的技能?
当然,任何额外的指示将不胜感激。
I have the following Picture:
And you guessed it: I want to extract all the little pictures into separate files. What I want to now:
- Is it possible to do this with one of Gimps scripting interfaces?
- Would you use “Batch-Mode”, “Script-Fi”, “Plug-ins” or something else I am not aware of?
- If yes: I have no experience with Gimp scripting: How much effort will it be to learn the needed skills?
Of course any additional pointers will be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编写 GIMP 脚本的最佳方法之一是使用 Python 语言 - 这样除了 GIMP 的 API 之外,您还可以完全访问 Python 可以利用的任何其他资源
在上面的情况下,我将继续在网格线上放置图像指南,然后使用“切片”插件 - 它将为每个表格单元格生成一个 GIMP 图像。然后使用 Python,甚至可以是交互式控制台,循环遍历图像并对它们执行额外的操作(例如保存)。
要查看 GIMP 中可以戏剧性地完成哪些操作,请检查“帮助”->“程序数据库”菜单项。
如果您没有“filters->python-fu”菜单项,则需要安装 GIMP-Python 环境。对于 Linux,它可以作为单独的软件包提供。对于 Windows,您必须通过 google 搜索它,因为它需要按正确的顺序安装 3 或 4 个不同的组件。 (希望当 GIMP 2.8 - 下一个版本发布时 - Python 环境将内置在 Windows 安装中)
One of the best ways to script GIMP is using the Python language - so that you have full acess to any other resources Python can tap, in addition to GIMP's API
In the case above, I'd proceed to place image guides over the grid lines, then using the "slice" plug-in- it will generate a GIMP image for each table cell. Then use Python, could even be the interactive console, to loop through the images and perform extra operations (like saving) on them.
To see what can be done melodramatically in GIMP, check the help->Procedure Database menu entry.
If you don't have a "filters->python-fu" menu entry, you gave to install the GIMP-Python environment. For Linuxes it is available as a separate package, For windows, you will have to google for it, as it requires the install of 3 or 4 different components in the correct order. (Hopefully when GIMP 2.8 - the next version is out - th Python environment will come built-in on windows installs)