claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Impossible to use a jpeg/jpg image to claude code

Open tristanbes opened this issue 9 months ago • 1 comments

Environment

  • Claude CLI version: 1.0.2 (Claude Code)
  • Operating System: MacOS
  • Terminal: iTerm2 & Ghosty

Bug Description

When sending a jpg or jpeg screenshot, claude code respond with an error 400 from the anthropic API saying this is not png. This error persist even though I'm sending a png right away. I need to kill claude code and relaunch it.

Expected Behavior

  1. Ability to see jpg/jpeg and not only png
  2. The error should not persist when sending a .jpg then a .png

Thank you

tristanbes avatar May 23 '25 14:05 tristanbes

Thanks for the report. I can reproduce the issue and have a fix in mind.

dicksontsai avatar May 23 '25 14:05 dicksontsai

Fixed in v1.0.3. You should now be able to paste in jpg paths as images.

dicksontsai avatar May 24 '25 12:05 dicksontsai

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 09 '25 14:08 github-actions[bot]