xcftopnm - convert xcf files to pnm files
xcftopnm [-layer N] [xcffile]
This is a rough and slow implementation of a xcf2pnm filter, to be used by other programs that want to be able to read xcf images. If ussage increases this program will doubtlessly be sped up as well.
Nth layer, instead of flattening the whole image.