buildIFD: Image Field Directory Builder

View source: R/tiff_utils.R

buildIFDR Documentation

Image Field Directory Builder

Description

Builds Image Field Directory (IFD)

Usage

buildIFD(val, typ, tag, endianness = .Platform$endian)

Arguments

val

the value of the IFD

typ

desired IFD type

tag

the desired IFD 'tag'

endianness

the desired endian-ness ("big" or "little"). Default is .Platform$endian.
Endianness describes the bytes order of data stored within the files. This parameter may not be modified.

Details

if 'val' if of type "character", 'tag' is automatically set to 2.
if 'val' is of length 0 NULL is returned.

Value

NULL or a list of 2 members:
-min_content: the minimal IFD content,
-add_content: the additional IFD content if 'val' converted to raw does not fit in 4 bytes.


IFC documentation built on Sept. 14, 2023, 1:08 a.m.