Function

Vipsfilename_get_options

Declaration [src]

char*
vips_filename_get_options (
  const char* vips_filename
)

Description [src]

Given a vips filename like “fred.jpg[Q=90]”, return a new string of just the options part, “[Q=90]” in this case.

Useful for language bindings.

Parameters

vips_filename

Type: const char*

A filename including a set of options.

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

Return value

Type: char*

Transfer full: just the options component.

The caller of the function takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.