Lctio Retiff

Use when modifying or debugging lctio.retiff, TIFF rewrite behavior, or the retiff CLI.

llnl 4d8093a 933 B Updated

File contents

LCTIO Retiff

Use this skill when a task touches src/lctio/retiff/ or the retiff command.

Current Behavior

  • retiff reads a TIFF file and rewrites it with simpler storage and minimal metadata.
  • The tool preserves image shape, sample values, and photometric interpretation.
  • The library entry point is lctio.retiff.rewrite().
  • The CLI entry point is retiff, defined in pyproject.toml.

Important Constraints

  • Only single-page TIFF files are supported. Multi-page input should raise an error.
  • The project intentionally relies on PIL for broad TIFF read compatibility and tifffile for writing.
  • The repository does not depend on imagecodecs.

CLI Examples

  • retiff input.tif
  • retiff input.tif -o output_dir/
  • retiff *.tif -o simplified/
  • retiff input.tif -v

llnl/lctio/tree/main/.agents/skills/lctio-retiff commit 4d8093ac60

Frequently asked questions

npx skillmds@latest add llnl/lctio-retiff