Converting XCF and other files using command line with GIMP?

后端 未结 5 971
忘了有多久
忘了有多久 2021-02-04 02:44

If I have an XCF file (or any other supported by Gimp) how can I convert it to, for example, PNG for display or further processing?

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-04 03:48

    I'm a couple of years late, but I thought I'd add what I think is by far the best solution: there is a tool suite called Xcftools (on Ubuntu, apt-get install xcftools), which has a utility called xcf2png that does this job perfectly.

    xcf2png image.xcf -o image.png
    

    This is much better than a) using ImageMagick (which as I said in a comment above is horribly broken), or b) using Gimp (which has an extremely complicated scripting language for simply exporting an image).

提交回复
热议问题