Images embedded in a dashboard maintain their aspect ratio and DPI from the source file. The displayed image remains the same size even when I resize the dashboard widget.
I expect that the image should be auto-scaled down to fit the widget. I'd like to include my company logo on our dashboards but our standard available assets are way too big for dashboards.

When closed update https://discuss.redash.io/t/image-resize-with-markdown/3632
One way to go about this is to let image dimensions be set with non-standard markdown syntax.
I'm unaware of an npm package that allows this, but if found it's an easy fix.
How about max-width: 100% for #markdown img for now?
How about
max-width: 100%for#markdown imgfor now?
I like it. @gabrieldutra @kravets-levko any input on this?
I like it. @gabrieldutra @kravets-levko any input on this?
LGTM, the resulting behavior is pretty much what I expected :slightly_smiling_face:
I don't think we should change Markdown syntax, the max-width solution should be good enough for now. In the future we will probably switch over to a different parser, which will allow safe HTML. Then people can customize this with an <img> tag.
max-width: 100% is not enough. We also need height: auto
max-width: 100%is not enough. We also needheight: auto
@gpakosz height: auto is supposed to be the default browser behavior, can you provide more details on which browser and version it fails? If possible you can try to reproduce it in our preview instance to make sure the latest master branch is tested.
Thanks!