mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
- Add MediaTool for native image/video support with configurable limits - MediaLimits dataclass configurable via HANZO_MEDIA_* env vars - Actions: load, load_batch, optimize, resize, extract_frames, info, limits, status - Hard caps enforced: 100 images, 32MB payload, 4096px max resolution - Default optimal targets: 768px, 85% JPEG quality - Fixed requires-python to >=3.12 (was >=3.11) - Bump hanzo-tools-computer to v0.3.0 Environment variables: HANZO_MEDIA_MAX_IMAGES=100 # Max images per batch HANZO_MEDIA_MAX_PAYLOAD_MB=32 # Max total payload in MB HANZO_MEDIA_MAX_RESOLUTION=1568 # Max image dimension HANZO_MEDIA_OPTIMAL_SIZE=768 # Target size for optimization HANZO_MEDIA_JPEG_QUALITY=85 # JPEG quality (1-100)