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.
convert filename.xcf filename.png
You could also use
xcf2png image.xcf -o image.png