Nyall Dawson 2bd18332aa [expressions] Make file function (such as base_file_name) gracefully
handle map layer values

These are treated as the file path to the layer.

E.g.

    base_file_name(@some_variable_which_is_a_layer)

will return the base file name of the layer's source
2022-02-07 16:02:37 +10:00

20 lines
658 B
Plaintext

{
"name": "exif",
"type": "function",
"groups": ["Files and Paths"],
"description": "Retrieves exif tag values from an image file.",
"arguments": [{
"arg": "path",
"description": "An image file path or a map layer value. If a map layer layer value is specified then the file source of the layer will be used."
}, {
"arg": "tag",
"optional": true,
"description": "The tag to return. If empty, a map with all exif tag values will be returned."
}],
"examples": [{
"expression": "exif('/my/photo.jpg','Exif.Image.Orientation')",
"returns": "0"
}],
"tags": ["exif", "retrieves", "tag", "file", "image", "values"]
}