Repository navigation
Commit 6a87fe2
committed
fix: auto-compress large images before passing to engine (#19)
Claude Code Read tool has a ~15000 token limit for images. Large
images (>500KB) exceed this and fail silently. GolemBot now auto-
compresses images before saving to disk: resize to max 1024px,
convert to JPEG at 80% quality, skip SVG/GIF. Adds sharp dependency.
Closes #19. Includes 11 new tests.1 parent 56eebc6 commit 6a87fe2
5 files changed
Lines changed: 595 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| |||
0 commit comments