Method

VipsImageget_string

Declaration [src]

int
vips_image_get_string (
  const VipsImage* image,
  const char* name,
  const char** out
)

Description [src]

Gets out from im under the name name. The field must be of type G_TYPE_STRING or VIPS_TYPE_REF_STRING.

Do not free out.

Use vips_image_get_as_string() to fetch any field as a string.

Parameters

name

Type: const char*

Field name.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
out

Type: const char**

Return field value.

The argument will be set by the function.
The returned data is owned by the instance.
The value is a NUL terminated UTF-8 string.

Return value

Type: int

0 on success, -1 otherwise.