Skip to contents

Retrieves technical image metadata: dimensions, format, colorspace, and filesize. Use this for layout calculations (aspect ratio), format-specific rendering, or storage/bandwidth estimates.

This data is extracted during image processing and cached. The artist parameter is not used in the query but kept for API consistency.

Usage

get_artwork_meta(artist, artwork, cn = NULL)

Arguments

artist

Character. Artist UUID (format: "746bxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated with artcore::validate_uuid() where applicable.

artwork

Character. Artwork UUID (format: "99xxxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated with artcore::validate_uuid() where applicable.

cn

Database connection. If NULL, creates a connection via artcore::dbc() and closes it on exit. Pass an existing connection to batch multiple queries efficiently.

Value

List with: image_format, image_width, image_height, image_colorspace, image_filesize