Converting XCF and other files using command line with GIMP?

后端 未结 5 969
忘了有多久
忘了有多久 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:23

    If you want to bulk convert .xcf images to .png, you might find this wrapper script more useful:

    #! /bin/bash -peux
    exec xcf2png $1 -o ${1%.xcf}.png
    

    Save it somewhere on your PATH as xcftopng (note the to instead of 2) and call it like so:

    ls *.xcf|xargs -l xcftopng
    

提交回复
热议问题