Image/Screenshot support

Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Activity 8 comments · opened Feb 25, 2025 · closed Feb 25, 2025
💡 Likely answer: A maintainer (bcherny, collaborator) responded on this thread — see the highlighted reply below.

Is image upload in the plans? Should really help when creating user interfaces and it's something I was used to do in aider with Claude 3.5

View original on GitHub ↗

8 Comments

bcherny collaborator · 1 year ago
georgeguimaraes · 1 year ago

I totally missed that! Awesome!

andrewreece · 1 year ago

@bcherny I'm not able to get the drag/drop functionality working — when I drag an image into the Claude Code window, it converts it into the image path, but it can't read it. My workaround has been to set up a screenshots folder (when I need help debugging something visual) and direct it to look there. But according to the docs you shared, it should just work to drag or copy an image in. Any tips for what I'm doing wrong? (macOS Sonoma/iTerm2) Thanks!

<img width="883" alt="Image" src="https://github.com/user-attachments/assets/96dfc5d4-be71-452e-b206-cbfcae2adcdd" />

estsauver · 1 year ago

I am seeing an issue where claude code reports it can't detect a file.


> This file shows the mismatch of the road boundaries and the underlying image: /Users/earljstsauver/Dev/fireman-rescue-game/screesnhot.jpg

⏺ I can't directly view the screenshot file on your system, but your description makes the issue clear: the road boundaries in the code don't match the actual
  roads shown in the background image.
dfreudenberger · 1 year ago
@bcherny I'm not able to get the drag/drop functionality working — when I drag an image into the Claude Code window, it converts it into the image path, but it can't read it. My workaround has been to set up a screenshots folder (when I need help debugging something visual) and direct it to look there. But according to the docs you shared, it should just work to drag or copy an image in. Any tips for what I'm doing wrong? (macOS Sonoma/iTerm2) Thanks! <img alt="Image" width="883" src="https://private-user-images.githubusercontent.com/329129/418289423-96dfc5d4-be71-452e-b206-cbfcae2adcdd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDQyMzA5NzIsIm5iZiI6MTc0NDIzMDY3MiwicGF0aCI6Ii8zMjkxMjkvNDE4Mjg5NDIzLTk2ZGZjNWQ0LWJlNzEtNDUyZS1iMjA2LWNiZmNhZTJhZGNkZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwNDA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDQwOVQyMDMxMTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jZTQxODFkZTAwYjYxMTMwMDhmNTc3ZTcwMDBjNmUzOGU4YzEzMzk2NWM5MDRhOTM3MjE5MTBkYjBhNTc1MDVjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.glVf5ZTzMl5MKRewIz8TPbHU_iKU4hwJ-oVav63gAQg">

I can confirm that. Interestingly, it works for me sometimes, but not consistently, and I haven't yet figured out why.

estsauver · 1 year ago

It has started working for me now consistently on updated versions of claude code--I think it should be fixed if you update. @dfreudenberger what version are you on?

kkjdaniel · 1 year ago

I'm encountering this issue - for me with screenshots it was the issue of spaces in the filename, once I removed them it found the image no issue.

github-actions[bot] · 1 year ago

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.