Skip to content

CI: resolution sanity check (megapixels vs max_width×max_height) #169

Description

@ch-bas

Catch data-entry errors like a 4MP camera (2560×1440) mislabeled megapixels: 8 — hand-caught during the X-Spans import.

Add to scripts/build.js (alongside the #124 lint): for single-sensor cameras, warn/error if megapixels diverges from (max_width × max_height) / 1e6 beyond a tolerance (~±35%).

Must exempt multi-sensor cameras — panoramic / dual-lens / X-Spans legitimately use combined megapixels with single-stream max_width×max_height (e.g. SDT8C842 'Dual 8MP' → 16 MP). Detect via type (panoramic/dual-lens) or a 'Dual/Quad/x N' label, and skip those.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions