Locked aspect ratio: rounding, letterboxing, and the 1px gap
`maintain-aspect-ratio` unifies cards, video thumbs, and slide exports: agree whether you letterbox, blur-fill, or center-crop before QA. Odd/even dimensions matter for some codecs and pixel-snapped UI. Batch scripts should document rounding (floor versus ceil) so engineering matches design exports.
Aspect-preserving resize steps
- In `maintain-aspect-ratio`, state whether the target box is inner-fit or outer-fit and how padding is filled.
- Verify the hero subject survives crops; logos should not look off-center because of asymmetric padding.
- Note if final width/height must be even for downstream video and log it in the handoff doc.
Aspect ratio Q&A
16:9 scaled to a fixed width leaves a 1px black line—why?
Floating-point rounding plus player scaling—standardize rounding or pad 1px transparent/black and document it.
Portrait art inside a landscape banner loses the focal point?
Use smart focal points or manual crop anchors instead of naive centering.
Automation disagrees with designer exports?
Share the same long-edge rule, rounding policy, and spot-diff a few frames.
Before publishing `maintain-aspect-ratio` assets externally, which compliance checks are mandatory beyond visual quality?
Start with "enforce pre-release QA gates", "prepare rollback versions", and "sample on real destinations", then explicitly verify "batch naming collisions" and "color profile mismatch" before release approval.
Under deadline pressure, how should teams balance speed and stability in `maintain-aspect-ratio` processing?
Start with "track export parameters", "normalize naming conventions", and "sample on real destinations", then explicitly verify "edge softness around text" and "unexpected thumbnail crop" before release approval.