editTag: Image Field Directory Tag Editor

View source: R/ome.R

editTagR Documentation

Image Field Directory Tag Editor

Description

Edits tag value in file IFDs (Image Field Directory).

Usage

editTag(IFD, which, tag, value, force = FALSE)

Arguments

IFD

an object of class 'IFC_ifd_list' extracted by getIFD.

which

scalar, integer (index) or the name of 'IFD' sub-element to edit 'tag' to.

tag

scalar, integer (index) or the name of the desired 'tag' in IFD[[which]].

value

value used to fill the 'tag'. For the moment only string is supported.

force

whether to force edition. Needed when 'tag' value already exceed 4 bytes. Default is FALSE.

Details

/!\ file will be modified /!\ /!\ When 'force' needs to be TRUE, 'value' will be appended to file but former tag 'value' will still be present in file and not erased.
Will only work when 'tag' is present in TIFF file.
Will only work for TIFF files produced by IFC

Value

It invisibly returns path of edited file.


gitdemont/IFC documentation built on Feb. 20, 2025, 12:55 a.m.