imageio.plugins.tifffile_v3.TifffilePlugin.metadata#
- TifffilePlugin.metadata(*, index: int = Ellipsis, page: Optional[int] = None, exclude_applied: bool = True) Dict[str, Any] [source]#
Format-Specific TIFF metadata.
The metadata returned depends on the value of both
index
andpage
.index
selects a series andpage
allows selecting a single page from the selected series. Ifindex=Ellipsis
,page
is understood as a flat index, i.e., the selection ignores individual series inside the file. Ifindex=Ellipsis
andpage=None
then global (file-level) metadata is returned.- Parameters
- indexint
Select the series of which to extract metadata from. If Ellipsis, treat page as a flat index into the file’s pages.
- pageint
If not None, select the page of which to extract metadata from. If None, read series-level metadata or, if
index=...
global, file-level metadata.- exclude_appliedbool
For API compatibility. Currently ignored.
- Returns
- metadatadict
A dictionary with information regarding the tiff flavor (file-level) or tiff tags (page-level).