FlowFuse / node-red-dashboard

https://dashboard.flowfuse.com
Apache License 2.0
201 stars 47 forks source link

Widget: Image #8

Open MarianRaphael opened 1 year ago

MarianRaphael commented 1 year ago

Describtion

As a Node-RED Dashboard user, I would like to have an easy and straightforward way to insert images into my dashboard without having to rely on external tools or complicated workarounds. This feature would streamline the process of adding visual elements and enhance the overall user experience.

rcarmo commented 1 year ago

Allow me to add here that the images should ideally be stored locally (although obviously referencing external images would be possible). Right now it's a pretty big annoyance to:

Also, the image control should be CSS themable (not as part of the control definition itself, I suppose, just provide enough CSS context for a global stylesheet to adjust presentation).

hardillb commented 1 year ago

Locally hosting media may not always be possible, not all systems have persistent file storage, and it is not a sensible idea to inline (base64) them into the flow as this will greatly increase the size of a flow.

rcarmo commented 1 year ago

Any which way, locally hosting media will be a mandatory requirement for many scenarios. Right now the situation is almost comically awkward, and I honestly don't see why small images can't, for instance, be stored inside GIT projects together with flows.

Edited to add: also, for scenarios where uploading images is a requirement, there has to be an easy way to view them.

joepavitt commented 4 months ago

Think it's reasonable for us to have a core, image widget. It's a fairly fundamental element, and should be an easy one to implement.