Open andrewleader opened 7 years ago
Already supported in HTML renderer.
@RebeccaAnne in UWP, would the author have to tell us that it's a SVG? Since we're creating the XAML UI programmatically, I think we have to explicitly create a SvgImageSource rather than the traditional BitmapImage to display a SVG⌠but the problem is we don't know whether it's a SVG when we're only given a URL (the http url doesn't have to include an extension).
Can you try to confirm that we need additional info (like a property the author specifies to say it's a SVG)?
@andrewleader, yes, looks like that's correct.
We should consider having the author specify a contentType as opposed to something like isSvg.
We do have the mimeType for media. We can do the same for image types that might not be PNG & JPG.
@andrewleader Is the SVG format supported for AdaptiveImage in Adaptive cards ? Please let know.
It's been three long years - this feels like Waiting for Godot. What is the ETA?
Would be nice if this could include image data uri support as well (as added with https://github.com/Microsoft/AdaptiveCards/issues/628), assuming it didn't just work by default once SVG support is implemented in general.
đ Android (#2469)
đ iOS (#2470)
âď¸ TS (#2471)
đ UWP (#2228)
đ Designer (#2543)
Summary
Many hosts and authors want to be able to use SVG images inside their cards. On most of our renderers, it isn't supported. Note that TS/HTML already supports it.
Asks
Proposal
In the Image element, simply allow SVG image sources. Update the renderers to display those properly.
Open questions
Can UWP properly display the SVG without being told it's a SVG? Or do we need the author to provide additional info?
Auto-generated task status