From d981b567a603bddc98971be8b826fa04ec418d6c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 13 Jul 2026 00:07:28 +0000 Subject: [PATCH] chore: publish from main --- plugins/visual-pr/skills/image-annotations/SKILL.md | 3 ++- skills/image-annotations/SKILL.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/visual-pr/skills/image-annotations/SKILL.md b/plugins/visual-pr/skills/image-annotations/SKILL.md index 8255e54b..2662a967 100644 --- a/plugins/visual-pr/skills/image-annotations/SKILL.md +++ b/plugins/visual-pr/skills/image-annotations/SKILL.md @@ -416,7 +416,8 @@ def annotate_image(image_path, annotations, *, cyan = (eb[0] - em_pad, eb[1] - em_pad, eb[2] + em_pad, eb[3] + em_pad) lines = spec['label'].split('\n') tw = max(font.getbbox(line)[2] - font.getbbox(line)[0] for line in lines) - line_h = font.getbbox('Ay')[3] - font.getbbox('Ay')[0] + bbox = font.getbbox('Ay') + line_h = bbox[3] - bbox[1] th = line_h * len(lines) + 4 * (len(lines) - 1) pw, ph = tw + 2 * TEXT_PAD, th + 2 * TEXT_PAD cands = _find_candidates(pixels, W, H, cyan, pw, ph, font) diff --git a/skills/image-annotations/SKILL.md b/skills/image-annotations/SKILL.md index 8255e54b..2662a967 100644 --- a/skills/image-annotations/SKILL.md +++ b/skills/image-annotations/SKILL.md @@ -416,7 +416,8 @@ def annotate_image(image_path, annotations, *, cyan = (eb[0] - em_pad, eb[1] - em_pad, eb[2] + em_pad, eb[3] + em_pad) lines = spec['label'].split('\n') tw = max(font.getbbox(line)[2] - font.getbbox(line)[0] for line in lines) - line_h = font.getbbox('Ay')[3] - font.getbbox('Ay')[0] + bbox = font.getbbox('Ay') + line_h = bbox[3] - bbox[1] th = line_h * len(lines) + 4 * (len(lines) - 1) pw, ph = tw + 2 * TEXT_PAD, th + 2 * TEXT_PAD cands = _find_candidates(pixels, W, H, cyan, pw, ph, font)