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

# \_TIFFRewriteField(3tiff)

rewrite a field in the directory on disk

## NAME

\_TIFFRewriteField - rewrite a field in the directory on disk

## SYNOPSIS

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

- **int \_TIFFRewriteField(TIFF \*tif, uint16\_t tag, TIFFDataType in\_datatype, tmsize\_t count, void \*data)**

  ## DESCRIPTION

*\_TIFFRewriteField()* Rewrite a field in the directory on disk without regard to updating the TIFF directory structure in memory.  Currently only supported for field that already exist in the on-disk directory. Mainly used for updating stripoffset / stripbytecount values after the directory is already on disk.

## RETURN VALUES

Returns zero on failure, and one on success.

## SEE ALSO

*libtiff* (3tiff)

## AUTHOR

LibTIFF contributors

## COPYRIGHT

1988-2022, LibTIFF contributors
