---
name: "TIFFsize"
section: "3tiff"
platform: "linux"
package: "libtiff-dev"
version: "4.7.0-3+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/TIFFsize/3tiff"
---

# TIFFsize(3tiff)

return the size of various items associated with an open TIFF file

## NAME

TIFFsize - return the size of various items associated with an open TIFF file

## SYNOPSIS

```
#include <tiffio.h>
```

- **tsize\_t TIFFRasterScanlineSize(TIFF \*tif)**

  - **uint64\_t TIFFRasterScanlineSize64(TIFF \*tif)**

  - **tsize\_t TIFFScanlineSize(TIFF \*tif)**

  - **uint64\_t TIFFScanlineSize64(TIFF \*tif)**

  ## DESCRIPTION

*TIFFScanlineSize()* returns the size in bytes of a row of data as it would be returned in a call to *TIFFReadScanline()*, or as it would be expected in a call to *TIFFWriteScanline()*. Note that this number may be 1/samples-per-pixel if data is stored as separate planes. The *ScanlineSize* in case of YCbCrSubsampling is defined as the strip size divided by the strip height, i.e. the size of a pack of vertical subsampling lines divided by vertical subsampling. It should thus make sense when multiplied by a multiple of vertical subsampling. *TIFFScanlineSize64()* returns the size as **uint64\_t**.

*TIFFRasterScanlineSize()* returns the size in bytes of a complete decoded and packed raster scanline. Note that this value may be different from the value returned by *TIFFScanlineSize()* if data is stored as separate planes. *TIFFRasterScanlineSize64()* returns the size as **uint64\_t**.

## DIAGNOSTICS

None.

## SEE ALSO

*TIFFOpen* (3tiff), *TIFFReadScanline* (3tiff), *libtiff* (3tiff)

## AUTHOR

LibTIFF contributors

## COPYRIGHT

1988-2022, LibTIFF contributors
