How dezoomify/dezoomify-rs works
dezoomify-rs is a desktop tiled-image downloader. The workflow accepts a URL or custom tile description, discovers image metadata and tile requests, downloads and decodes tiles, then writes the chosen output format. The core separates protocol discovery from the application’s HTTP, tile-processing, and encoding work. README-documented dezoomers are included as capability branches; their exact runtime dispatch was not shown in the excerpts, so those links are marked unverified.
Main entry points: registry.rs Dezoomer registry · lib.rs Download orchestration · download_state.rs Tile downloads · discovery.rs Discovery operation
Components 18
CLI and orchestration
- CLI entry
src/main.rs - Arguments
src/arguments.rs - Download orchestration
src/lib.rs
Discovery core
- Dezoomer registry
dezoomify-core/src/core/registry.rs - Discovery operation
dezoomify-core/src/core/discovery.rs - Tile plans
dezoomify-core/src/core/tile_plan.rs
Image protocols
- Zoomify and DZI
dezoomify-core/src/zoomify/mod.rs - IIIF and manifests
dezoomify-core/src/iiif/mod.rs - Krpano panoramas
dezoomify-core/src/krpano/mod.rs - Google Arts
dezoomify-core/src/google_arts_and_culture/mod.rs - Other dezoomers
dezoomify-core/src
Download and output
- Tile downloads
src/download_state.rs - HTTP and cache
src/network.rs - Tile decoding
src/tile.rs - Tile buffer
src/encoder/tile_buffer.rs - Output encoders
src/encoder/mod.rs - Output files
src/output_file.rs
Other components
- User
Connections 17
- User → CLI entry: runs
- CLI entry → Arguments: accepts options
- Arguments → Download orchestration: configures
src/lib.rs - Download orchestration → Discovery operation: discovers images
src/lib.rs - Dezoomer registry → Discovery operation: starts discovery
dezoomify-core/src/core/discovery.rs - Dezoomer registry → Zoomify and DZI: dispatches to
- Dezoomer registry → IIIF and manifests: dispatches to
- Dezoomer registry → Krpano panoramas: dispatches to
- Dezoomer registry → Google Arts: dispatches to
- Dezoomer registry → Other dezoomers: dispatches to
dezoomify-core/src/core/discovery.rs - Discovery operation → Tile plans: describes tiles
dezoomify-core/src/core/mod.rs - Download orchestration → Tile downloads: coordinates downloads
src/lib.rs - Tile downloads → HTTP and cache: fetches tiles
src/download_state.rs - Tile downloads → Tile decoding: processes tiles
src/download_state.rs - Tile downloads → Tile buffer: adds tiles
src/download_state.rs - Download orchestration → Output encoders: selects encoder
src/encoder/mod.rs - Output encoders → Output files: writes result