01dbf6de86b31dc4f8121daf9949482366da3ef2
Computes aspect at generate-time from the loaded BufferedImage: w/h above 1.1 → LANDSCAPE, otherwise PORTRAIT. The threshold keeps near-square A4 scans in the portrait tile (ratio ≈ 1.0) rather than flipping to landscape on a rounding error. Also hardens the pipeline with an explicit dimension guard so width=0 / height=0 edge cases fail cleanly instead of dividing by zero when the aspect is computed. Refs #305 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Description
No description provided
Languages
Python
73.1%
TypeScript
11.5%
Java
10.9%
Svelte
4.2%
Shell
0.1%