TIFFSET(1)

πŸ’– TIFFSET β€” bestie edition πŸ’–

okay so real quick, this is tiffset from the LibTIFF fam (that's the TIFFSET(1) one, section 1, obvi) and it's literally the glow-up tool for your TIFF headers ✨

🌸 NAME 🌸

tiffset β€” set or unset a field in a TIFF header. yes that's the whole vibe. we're editing metadata, we're serving, we're done πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

tiffset [ options ] filename.tif

✨ DESCRIPTION ✨

so tiffset does exactly one thing and does it iconically: it sets the value of a TIFF header to a specified value, OR it removes an existing setting. that's it. that's the girl. πŸŽ€


πŸ‘‘ OPTIONS πŸ‘‘

  • -d dirnumber β€” change the current directory (starting at 0). like flipping to a different page in the TIFF, bestie πŸ—‚οΈ
  • -s tagnumber [ count ] value … β€” set the value of the named tag to the value or values you specify. this is the main character option fr fr
  • -sd diroffset β€” change the current directory by offset. same energy as -d but you're navigating by offset instead of number πŸ’«
  • -sf tagnumber filename β€” set the value of the tag to the contents of filename. ⚠️ lowkey important: this option is supported for ASCII tags only, no cap
  • -u tagnumber β€” unset the tag. bye bye tag, we don't know her anymore πŸ’€

🌈 EXAMPLES 🌈

exhibit a β€” sets the image description tag (270) of a.tif to the contents of the file descrip:

tiffset -sf 270 descrip a.tif

exhibit b β€” sets the artist tag (315) of a.tif to the string Anonymous:

tiffset -s 315 Anonymous a.tif

exhibit c β€” sets the resolution of the file a.tif to 300 dpi:

tiffset -s 296 2 a.tif
tiffset -s 282 300.0 a.tif
tiffset -s 283 300.0 a.tif

exhibit d β€” set the photometric interpretation of the third page of a.tif to min-is-black (ie. inverts it). and yes, that -d 2 is because we start counting at 0, she's on her zero-indexed era 😌:

tiffset -d 2 -s 262 1 a.tif

πŸ”₯ SEE ALSO πŸ”₯

  • tiffdump (1)
  • tiffinfo (1)
  • tiffcp (1)
  • libtiff (3tiff)

go read those too, they're all part of the squad 🫢


πŸ’œ AUTHOR πŸ’œ

LibTIFF contributors β€” the actual legends

1988-2025, LibTIFF contributors


and that's the whole page, bestie!! this was version 4.7, dated Jun 27, 2026, and it came to you straight from the LibTIFF girlies. now go forth and set some tags πŸ’–βœ¨πŸŒΈπŸ¦‹πŸ’…

πŸ“¦ where this page comes from