takane
Validators for ArtifactDB file formats
Loading...
Searching...
No Matches
takane::image_file Namespace Reference

Definitions for standard image files. More...

Functions

void validate (const std::filesystem::path &path, const ObjectMetadata &metadata, Options &options)
 

Detailed Description

Definitions for standard image files.

Function Documentation

◆ validate()

void takane::image_file::validate ( const std::filesystem::path & path,
const ObjectMetadata & metadata,
Options & options )
inline

If Options::image_file_strict_check is provided, it is used to perform stricter checking of the image file contents. By default, we don't look past the magic number to verify the files as this requires a dependency on heavy-duty libraries like, e.g., Magick.

Parameters
pathPath to the directory containing the image file.
metadataMetadata for the object, typically read from its OBJECT file.
optionsValidation options.