Dhanji R. Prasanna
3601cc0547
Enhance read_image tool with magic byte detection and multi-image support
- Fix media type detection using magic bytes instead of file extension
- Correctly identifies JPEG files with .png extension (and vice versa)
- Supports PNG, JPEG, GIF, and WebP formats
- Add multi-image support with file_paths array parameter
- Load multiple images in a single tool call
- All images queued for LLM analysis
- Enhanced CLI output:
- Inline image preview via iTerm2 imgcat protocol (height=5)
- Dimmed info line showing: path | dimensions | media type | file size
- Proper │ prefix alignment with tool output boxing
- Human-readable file sizes (bytes, KB, MB)
- Add image dimension extraction from file headers
- PNG, JPEG, GIF, WebP dimension parsing
- Add comprehensive tests for magic byte detection and dimensions
2025-12-26 11:19:37 +11:00
..
2025-12-22 16:08:57 +11:00
2025-12-25 18:23:10 +11:00
2025-11-27 21:00:02 +11:00
2025-12-22 17:11:05 +11:00
2025-12-22 15:01:27 +11:00
2025-12-26 11:19:37 +11:00
2025-12-22 16:10:34 +11:00
2025-12-22 10:32:21 +11:00
2025-12-09 17:03:53 +11:00
2025-12-01 14:38:21 +11:00
2025-12-23 16:22:12 +11:00
2025-12-02 14:45:12 +11:00
2025-12-02 11:07:13 +11:00
2025-12-22 10:32:21 +11:00
2025-11-27 21:00:02 +11:00
2025-12-01 14:52:10 +11:00
2025-12-24 15:44:19 +11:00