# weave-image
Thumbnail download, resize, and WebP conversion for OSINT knowledge graphs.
Part of the [Weave](https://github.com/redberrythread/weave) workspace.
## Features
- Download images from URLs with size (5 MB) and timeout (15s) limits
- Center-crop and resize to 256x256 WebP thumbnails
- Deterministic storage keys via SHA-256 of source URL
- Output size capped at 50 KB
## Usage
```rust
use weave_image::{thumbnail_key, resize_to_webp, process_thumbnail};
// Compute storage key from source URL
let key = thumbnail_key("https://example.com/photo.jpg");
// => "thumbnails/a1b2c3d4...webp"
// Download, resize, and key in one call
let result = process_thumbnail("https://example.com/photo.jpg");
```
## License
MIT