Files
AnyImage/openspec/changes/archive/2026-09-17-auto-crop-panorama-input/tasks.md
nan 198fcbf55b
Some checks failed
Test / test (push) Has been cancelled
Initial public release
2026-09-19 21:31:36 +08:00

1.0 KiB

1. Crop Bounds

  • 1.1 Add a common helper that returns the largest deterministic centered exact 2:1 integer-pixel bounds and rejects dimensions that cannot produce a positive crop
  • 1.2 Add focused tests for exact, wide, tall, odd-width, uneven-margin, and unusably small dimension cases

2. Panorama Conversion

  • 2.1 Update Convert to Panorama to keep animated-image validation, compute the crop bounds, and pass them into the shared material color input preparation
  • 2.2 Report one crop warning with original and cropped dimensions only when pixels are removed
  • 2.3 Update panorama operator tests to verify arbitrary aspect ratios submit cropped color and analysis inputs, exact 2:1 input stays unchanged, and unsupported sources remain rejected

3. Verification

  • 3.1 Run the related common image and panorama conversion test suites and confirm they pass
  • 3.2 Inspect the final diff and search the panorama conversion path to confirm the strict 2:1 rejection and stale expectations are removed