CutAgent v0.5.0
New Features
-
Crop operation — Extract a rectangular region from any video frame
cutagent crop FILE --x 160 --y 0 --width 320 --height 480 -o portrait.mp4- Validates crop region against source frame bounds
-
Resize operation — Resize video to a target canvas with aspect ratio control
cutagent resize FILE --width 1080 --height 1920 --fit contain -o social.mp4- Supports
contain(preserves aspect ratio with padding) andstretchmodes
Full Integration
Both operations are available across all CutAgent surfaces:
- Python API:
crop(),resize(),CropOp,ResizeOp - CLI commands:
cutagent crop,cutagent resize - EDL engine:
{"op": "crop", ...},{"op": "resize", ...} - Payload-first:
cutagent op crop --json '...',cutagent op resize --json '...' - Schema discovery:
cutagent schema operation crop,cutagent schema operation resize - Validation: bounds checking, fit mode validation, dry-run support
- Error codes:
INVALID_CROP_REGION,INVALID_RESIZE_DIMENSIONS,INVALID_RESIZE_FIT
Install / Upgrade
pip install --upgrade cutagent