To decrease the file size, images are saved in a shared fashion. This means that each image is assigned a key that is used in the pixmap, image, or icon set properties. Later in the image collection, all these images are saved at once. The images are written in either PNG format or compressed XPM format with each character converted to a hex code. The format is specified in the <data> element, using the format attribute. Here is an example of an image collection with one entry:
<images> <image> <name>key</name> <data format="PNG|XPM.GZ">PNG or XMP.GZ data in hexadecimal format</data> </image> </images>