Skip to content

Commit

Permalink
docs: expand examples of tiff tags
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Nov 26, 2023
1 parent 0b5fa07 commit 08a78d7
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions packages/core/src/const/tiff.tag.id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export enum TiffTag {
*
* @example
* ```typescript
* 1 // uint
* 1 // SampleFormat.Uint
* ```
*/
SampleFormat = 339,
Expand All @@ -181,26 +181,53 @@ export enum TiffTag {
* Compression Type
*
* @see {@link Compression}
*
* @example
* ```typescript
* 5 // Compression.Lzw
* ```
*/
Compression = 259,

/**
* Photometric interpretation
*
* @see {@link Photometric}
*
* @example
* ```typescript
* 2 // Photometric.Rgb
* ```
*/
Photometric = 262,

/** Tile width in pixels */
TileWidth = 322,
/** Tile height in pixels */
TileHeight = 323,
/** Offsets to data tiles */

/**
* Offsets to data tiles
* `0` means the tile has no data (sparse tiff)
*
* @example
* ```typescript
* [0, 3200, 1406] // three tiles, first tile does not exist
* ```
*/
TileOffsets = 324,
/** Byte counts for tiles */
/**
* Byte counts for tiles
* `0 means the tile does not exist (sparse tiff)
*
* @example
* ```typescript
* [0, 3200, 1406] // three tiles, first tile does not exist
* ```
**/
TileByteCounts = 325,

/** %JPEG table stream */
/** JPEG table stream */
JpegTables = 347,

StripOffsets = 273,
Expand Down

0 comments on commit 08a78d7

Please sign in to comment.