Top |
GimpMetadataGimpMetadata — Basic functions for handling GimpMetadata objects. |
GimpMetadata * | gimp_metadata_new () |
GimpMetadata * | gimp_metadata_duplicate () |
GimpMetadata * | gimp_metadata_deserialize () |
gchar * | gimp_metadata_serialize () |
gchar * | gimp_metadata_get_guid () |
void | gimp_metadata_add_xmp_history () |
GimpMetadata * | gimp_metadata_load_from_file () |
gboolean | gimp_metadata_save_to_file () |
gboolean | gimp_metadata_set_from_exif () |
gboolean | gimp_metadata_set_from_iptc () |
gboolean | gimp_metadata_set_from_xmp () |
void | gimp_metadata_set_pixel_size () |
void | gimp_metadata_set_bits_per_sample () |
gboolean | gimp_metadata_get_resolution () |
void | gimp_metadata_set_resolution () |
GimpMetadataColorspace | gimp_metadata_get_colorspace () |
void | gimp_metadata_set_colorspace () |
gboolean | gimp_metadata_is_tag_supported () |
GimpMetadata *
gimp_metadata_new (void
);
Creates a new GimpMetadata instance.
Since: 2.10
GimpMetadata *
gimp_metadata_duplicate (GimpMetadata *metadata
);
Duplicates a GimpMetadata instance.
Since: 2.10
GimpMetadata *
gimp_metadata_deserialize (const gchar *metadata_xml
);
Deserializes a string of XML that has been created by
gimp_metadata_serialize()
.
Since: 2.10
gchar *
gimp_metadata_serialize (GimpMetadata *metadata
);
Serializes metadata
into an XML string that can later be deserialized
using gimp_metadata_deserialize()
.
Since: 2.10
gchar *
gimp_metadata_get_guid (void
);
Generate Version 4 UUID/GUID.
Since: 2.10
void gimp_metadata_add_xmp_history (GimpMetadata *metadata
,gchar *state_status
);
GimpMetadata * gimp_metadata_load_from_file (GFile *file
,GError **error
);
Loads GimpMetadata from file
.
Since: 2.10
gboolean gimp_metadata_save_to_file (GimpMetadata *metadata
,GFile *file
,GError **error
);
Saves metadata
to file
.
metadata |
A GimpMetadata instance. |
|
file |
The file to save the metadata to |
|
error |
Return location for error message |
Since: 2.10
gboolean gimp_metadata_set_from_exif (GimpMetadata *metadata
,const guchar *exif_data
,gint exif_data_length
,GError **error
);
Sets the tags from a piece of Exif data on metadata
.
metadata |
A GimpMetadata instance. |
|
exif_data |
The blob of Exif data to set |
|
exif_data_length |
Length of |
|
error |
Return location for error message |
Since: 2.10
gboolean gimp_metadata_set_from_iptc (GimpMetadata *metadata
,const guchar *iptc_data
,gint iptc_data_length
,GError **error
);
Sets the tags from a piece of IPTC data on metadata
.
metadata |
A GimpMetadata instance. |
|
iptc_data |
The blob of Ipc data to set |
|
iptc_data_length |
Length of |
|
error |
Return location for error message |
Since: 2.10
gboolean gimp_metadata_set_from_xmp (GimpMetadata *metadata
,const guchar *xmp_data
,gint xmp_data_length
,GError **error
);
Sets the tags from a piece of XMP data on metadata
.
metadata |
A GimpMetadata instance. |
|
xmp_data |
The blob of Exif data to set |
|
xmp_data_length |
Length of |
|
error |
Return location for error message |
Since: 2.10
void gimp_metadata_set_pixel_size (GimpMetadata *metadata
,gint width
,gint height
);
Sets Exif.Image.ImageWidth and Exif.Image.ImageLength on metadata
.
Since: 2.10
void gimp_metadata_set_bits_per_sample (GimpMetadata *metadata
,gint bits_per_sample
);
Sets Exif.Image.BitsPerSample on metadata
.
Since: 2.10
gboolean gimp_metadata_get_resolution (GimpMetadata *metadata
,gdouble *xres
,gdouble *yres
,GimpUnit *unit
);
Returns values based on Exif.Image.XResolution,
Exif.Image.YResolution and Exif.Image.ResolutionUnit of metadata
.
metadata |
A GimpMetadata instance. |
|
xres |
Return location for the X Resolution, in ppi |
|
yres |
Return location for the Y Resolution, in ppi |
|
unit |
Return location for the unit unit |
Since: 2.10
void gimp_metadata_set_resolution (GimpMetadata *metadata
,gdouble xres
,gdouble yres
,GimpUnit unit
);
Sets Exif.Image.XResolution, Exif.Image.YResolution and
Exif.Image.ResolutionUnit of metadata
.
metadata |
A GimpMetadata instance. |
|
xres |
The image's X Resolution, in ppi |
|
yres |
The image's Y Resolution, in ppi |
|
unit |
The image's unit |
Since: 2.10
GimpMetadataColorspace
gimp_metadata_get_colorspace (GimpMetadata *metadata
);
Returns values based on Exif.Photo.ColorSpace, Xmp.exif.ColorSpace,
Exif.Iop.InteroperabilityIndex, Exif.Nikon3.ColorSpace,
Exif.Canon.ColorSpace of metadata
.
Since: 2.10
void gimp_metadata_set_colorspace (GimpMetadata *metadata
,GimpMetadataColorspace colorspace
);
Sets Exif.Photo.ColorSpace, Xmp.exif.ColorSpace,
Exif.Iop.InteroperabilityIndex, Exif.Nikon3.ColorSpace,
Exif.Canon.ColorSpace of metadata
.
Since: 2.10
gboolean gimp_metadata_is_tag_supported (const gchar *tag
,const gchar *mime_type
);
Returns whether tag
is supported in a file of type mime_type
.
Since: 2.10
gimp_image_metadata_load_prepare(),
gimp_image_metadata_load_finish()
,
gimp_image_metadata_load_prepare()
,
gimp_image_metadata_load_finish()
.