【问题标题】:Gimp from command line从命令行 Gimp
【发布时间】:2014-05-28 16:47:20
【问题描述】:

我使用 Gimp 将一个 PNG 导出到另一个没有来自透明像素的颜色值的 PNG。有没有办法从命令行做同样的事情?我将从 php 中使用这个脚本。 Gimp UI 中的选项是“保存透明像素的颜色值”未选中。

最好的,

【问题讨论】:

    标签: linux image png gimp


    【解决方案1】:

    与其尝试编写像 Gimp 这样的大型交互式 GUI 程序,不如使用像 ImageMagick 的 convert 这样的简单命令行图像工具。这是来自他们的documentation 的示例:

    convert moon.png -background HotPink -alpha Background moon_hotpink.png
    

    【讨论】:

    • 谢谢,我只用了 convert monkey4.png -alpha 背景 monkey5.png
    猜你喜欢
    • 2023-03-17
    • 2017-06-17
    • 2021-12-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-05-05
    • 2012-07-15
    • 2018-01-30
    相关资源
    最近更新 更多