weave-image
Thumbnail download, resize, and WebP conversion for OSINT knowledge graphs.
Part of the 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
use ;
// Compute storage key from source URL
let key = thumbnail_key;
// => "thumbnails/a1b2c3d4...webp"
// Download, resize, and key in one call
let result = process_thumbnail;
License
MIT