For support of a metainformation, saved together with some images, in ksquirrel-libs exists the special structure similar to map. Support of a metainformation COMPLETELY lays down on library i.e. if in image file there are any collateral data, but library ignores it, KSquirrel (as well as any other viewer on the basis of ksquirrel-libs) will not display it in "Image Properties" dialog.

At present EXIF the information is not supported yet, but in v0.6.0 it possibly will be realized.

Formally work with a metainformation looks so: [read some information from a file] => [group it] => [keep in object 'finfo']. Further you can see an example of the elementary reading and preservation of a metainformation.

You should read metainfo in fmt_read_next() and store it in finfo.meta.

Example

        Read information from file
        frs.readK(str, 255);

        Don't forget to insert '\0', if necessary
        str[255] = '\0';

        fmt_metaentry mt;

        Setup group name. It can be "JPEG "COM" Marker", "PNG key",
        "SGI Image Name", or any other you want.
        mt.group = "Group name";

        Copy information
        mt.data = str;

        insert new metaentry
        finfo.meta.push_back(mt);