Files
awesome-copilot/skills/image-annotations
Artur Spychaj 0aaced5332 Fix line-height calc in image-annotations annotate.py (#2266)
font.getbbox() returns (left, top, right, bottom), so text line height must
be bottom - top (bbox[3] - bbox[1]). The label placement code used
bbox[3] - bbox[0] (bottom - left), mixing an x-coordinate into a height and
producing a slightly wrong label-box height (empirically off by 0-4px
depending on font). The debug heatmap labeling in the same module already
uses the correct bbox[3] - bbox[1], so this brings placement in line.
2026-07-13 10:07:01 +10:00
..