gitbutlerapp / gitbutler

The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte
https://gitbutler.com
Other
13.19k stars 523 forks source link

Display images #2752

Closed JohnAtl closed 3 weeks ago

JohnAtl commented 8 months ago

Rather than 'Binary content not shown', an image preview would be nice.

krlvi commented 8 months ago

Makes total sense! Thanks, this is probably to a difficult one to implement either

koppor commented 3 months ago

Isn't this app TypeSript / Svlete based? Thus, outputs HTML to kind of a browser? Then <img> can be used. OK, maybe serving the binary from the "backend" is hard. However, the text also gets displayed in the UI somehow. -- Maybe the "naive" answers at https://stackoverflow.com/q/56895865/873282 help somehow?