All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
31.27k stars 3.61k forks source link

frontend: Support displaying images/videos/pdfs in the workspace #1491

Open xingyaoww opened 4 months ago

xingyaoww commented 4 months ago

What problem or use case are you trying to solve?

Images are not properly rendered in the Code Editor (though maybe it is not supposed to do that... -- I'm open to discussion about this).

image

Describe the UX of the solution you'd like

I kind of expect a VSCode-like experience that it can display some simple media file (jpg, png, or even mp4 and pdf) and show an error message when it encounters a binary file type (e.g., .exe) that it does not support.

Do you have thoughts on the technical implementation?

Describe alternatives you've considered

Additional context

amanape commented 4 months ago

For images and videos it may be as simple as rendering an img or video element given the extension/path.

github-actions[bot] commented 3 months ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

neubig commented 1 month ago

Voting +1 on wanting to fix this.