XCF

XCF is the native file format for GIMP (GNU Image Manipulation Program). It supports layers and many other features.

The Wikipedia article says that the reference documentation is the source code for GIMP itself.


 * GIMP website