_TIFFREWRITEFIELD(3tiff)

🌸 NAME 🌸

okay bestie, welcome to the _TIFFREWRITEFIELD(3tiff) manual page from LibTIFF πŸ’… this one is all about _TIFFRewriteField β€” rewrite a field in the directory on disk. that's the whole name vibe. periodt.


πŸ“š SYNOPSIS πŸ“š

#include <tiffio.h>

int _TIFFRewriteField(TIFF *tif, uint16_t tag, TIFFDataType in_datatype,
tmsize_t count, void *data)

πŸ› οΈ DESCRIPTION πŸ› οΈ

okay so _TIFFRewriteField() does exactly what it says on the tin: it rewrites a field in the directory on disk, and it does not care about updating the TIFF directory structure in memory. no cap 🫢

Right now it's only supported for a field that already exists in the on-disk directory. So if it's not already there, this is not the function for you, bestie. πŸ™ˆ

It's mainly used for updating stripoffset / stripbytecount values after the directory is already on disk. iconic behavior for real. ✨

🎯 RETURN VALUES 🎯

It returns zero on failure 😭 and one on success πŸŽ‰. that's it. short and sweet.

πŸ‘€ SEE ALSO πŸ‘€

  • libtiff (3tiff) β€” go read that too, bestie πŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

LibTIFF contributors. absolute icons. πŸ’…

1988-2025, LibTIFF contributors. 🩷


okay that's the whole page! this was _TIFFREWRITEFIELD(3tiff), version 4.7, dated Jun 27, 2026. mwah πŸ’‹ stay slaying with LibTIFF.