TIFF files contain metadata about images in their TIFF tags. This function is for reading this information without reading the actual image.
Examples
read_tags(system.file("img", "Rlogo.tif", package = "ijtiff"))
#> $frame1
#> $frame1$ImageWidth
#> [1] 100
#>
#> $frame1$ImageLength
#> [1] 76
#>
#> $frame1$ImageDepth
#> [1] 1
#>
#> $frame1$BitsPerSample
#> [1] 8
#>
#> $frame1$SamplesPerPixel
#> [1] 4
#>
#> $frame1$SampleFormat
#> [1] "unsigned integer data"
#>
#> $frame1$PlanarConfiguration
#> [1] "contiguous"
#>
#> $frame1$RowsPerStrip
#> [1] 76
#>
#> $frame1$TileWidth
#> NULL
#>
#> $frame1$TileLength
#> NULL
#>
#> $frame1$Compression
#> [1] "LZW"
#>
#> $frame1$Threshholding
#> [1] 1
#>
#> $frame1$XResolution
#> [1] 299.99
#>
#> $frame1$YResolution
#> [1] 299.99
#>
#> $frame1$XPosition
#> NULL
#>
#> $frame1$YPosition
#> NULL
#>
#> $frame1$ResolutionUnit
#> [1] "inch"
#>
#> $frame1$Orientation
#> [1] "top_left"
#>
#> $frame1$Copyright
#> NULL
#>
#> $frame1$Artist
#> NULL
#>
#> $frame1$DocumentName
#> NULL
#>
#> $frame1$DateTime
#> NULL
#>
#> $frame1$ImageDescription
#> NULL
#>
#> $frame1$Software
#> NULL
#>
#> $frame1$PhotometricInterpretation
#> [1] "RGB"
#>
#> $frame1$ColorMap
#> NULL
#>
#>