OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

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

Open xingyaoww opened this issue 1 year ago • 7 comments

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

xingyaoww avatar May 01 '24 15:05 xingyaoww

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

amanape avatar May 01 '24 15:05 amanape

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.

github-actions[bot] avatar Jun 02 '24 01:06 github-actions[bot]

Voting +1 on wanting to fix this.

neubig avatar Aug 09 '24 16:08 neubig

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.

github-actions[bot] avatar Sep 19 '24 01:09 github-actions[bot]