Skip to contents

The function retrieves the values from the Hierarchical Subject field of an image's metadata. It uses exiftool to read the metadata and processes the results to extract and return the unique hierarchical subjects.

Usage

mm_get_hs(path)

Arguments

path

A character vector specifying the full path of the image file.

Value

A character vector of unique hierarchical subjects if they exist, otherwise NULL.

Examples


# Image path
image_path <- file.path(system.file("img", package = "maimer"), "large.jpeg")

# Get Hierarchical Subject from the image
mm_get_hs(path = image_path)
#> [1] "Species|Vulture"