[BUG] "Error: G is not a function" when interpreting png
Resolved 💬 3 comments Opened May 20, 2025 by Riddy21 Closed Jan 4, 2026
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- 0.2.122 (Claude Code)
- Mac OS 15.4.1
- iTerm2
Bug Description
When trying to prompt to view a png file:
> PNG_transparency_demonstration_1.png show me what this picture is showing?
⏺ Read(PNG_transparency_demonstration_1.png)…
⎿ Error: G is not a function
⏺ It appears to be a PNG image demonstrating transparency. Let me try to
open it properly.
⏺ Task(Display PNG image)…
⎿ Read(PNG_transparency_demonstration_1.png)…
⎿ Error: G is not a function
⏺ I'm having difficulty displaying the image directly. The image appears to
be a PNG transparency demonstration based on the filename. It likely shows
examples of how transparency works in PNG format, with checkered
backgrounds or different opacity levels.
Steps to Reproduce
- Load png to repo (image attached in additional context below)
claude(open in interactive mode)- Prompt to read image from path, this path exists
Expected Behavior
Expected description of image similar to (Claude code tutorials)[https://docs.anthropic.com/en/docs/claude-code/tutorials#work-with-images]
Actual Behavior
Error: G is not a function
Additional Context

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗