I have a folder with a lot of
xcf files which I want all to be converted to
png files, at best via a one-liner from bash.
How can I achieve such a task?
You can use GIMP Image editor and use Export to tool. Use ctrl-shift-e as shortcut.
You can also use
convert filename.xcf filename.png
You can also use Xcftools (sudo apt-get install xcftools), which has a utility called xcf2png that does this job perfectly.
xcf2png image.xcf -o image.png