How kassoulet/tiff-reducer works
tiff-reducer is a Rust CLI for compressing, analyzing, and wiping TIFF images while preserving metadata. The main workflow is a user invoking a subcommand, after which the CLI processes TIFF data and produces an optimized or transformed file. Compression supports multiple codecs, lossy and extreme selection, quantization, tiling, overviews, checksums, and batch processing. The graph reflects README-documented capabilities and sampled module references; gaps in the main source excerpt limit detail about internal dispatch and data flow.
Main entry points: main.rs Command interface · ffi.rs libtiff bindings · wipe.rs Content wiping · metadata.rs Metadata copying
Components 8
CLI workflows
- Command interface
src/main.rs
Image processing
- TIFF compression
src/main.rs - Metadata analysis
src/main.rs - Content wiping
src/wipe.rs - Pixel quantization
src/quantize.rs - Metadata copying
src/metadata.rs
TIFF internals
- libtiff bindings
src/ffi.rs
Other components
- User
Connections 9
- User → Command interface: invokes
README.md - Command interface → TIFF compression: runs compression
README.md - Command interface → Metadata analysis: runs analysis
README.md - Command interface → Content wiping: runs wipe
README.md - Command interface → Metadata copying: references
src/main.rs - Command interface → Pixel quantization: references
src/main.rs - Command interface → libtiff bindings: imports
src/main.rs - Metadata copying → libtiff bindings: uses bindings
src/metadata.rs - Content wiping → libtiff bindings: uses bindings
src/wipe.rs