audit_device_frame
Detect cropped content in device-mockup frames. Checks geometry, motion (Ken Burns), and edge truncation to identify content loss in phone/MacBook screenshots and app previews.
Instructions
Detect cropped content in device-mockup frames (phone/MacBook screenshots, app-preview clips). Three checks: (1) GEOMETRY — call with frames (container box + intrinsic media size + object-fit/position; call with NO args for a DevTools snippet) to flag object-fit:cover crop loss when the frame's aspect ratio ≠ the media's; (2) MOTION — pass clips (first/last frame PNG paths) to detect baked-in pan/zoom (Ken Burns) that drifts the composition; (3) EDGE — pass edge_frames (PNG paths) to flag content truncated at a frame edge. Catches the exact failure where a 16:9 clip in a 1.82-AR screen cutout silently slices the bottom, or a Ken-Burns-zoomed source crops content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clips | No | Per-clip first/last frame PNG file paths — detects baked-in pan/zoom (Ken Burns). | |
| frames | No | Device-frame geometry samples (from the DevTools snippet): container box + intrinsic media size + computed object-fit/position. Flags object-fit:cover crop loss. | |
| edge_frames | No | Frame PNG file paths to check for content truncated at a frame edge (reuses edge-symmetry). |