[.NET] Low resolution images in an image set don't stretch as they do on other platforms
See original GitHub issuePlatform
What platform is your issue or question related to? (Delete other platforms).
- .NET WPF
Issue
The below card renders differently on .NET compared to UWP and Javascript.
Javascript behavior (UWP is similar):
.NET behavior
Json:
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "ImageSet",
"images": [
{
"type": "Image",
"url": "http://messagecardplayground.azurewebsites.net/assets/person_w1.png"
},
{
"type": "Image",
"url": "http://messagecardplayground.azurewebsites.net/assets/person_m1.png"
},
{
"type": "Image",
"url": "http://messagecardplayground.azurewebsites.net/assets/person_w2.png"
},
{
"type": "Image",
"url": "http://messagecardplayground.azurewebsites.net/assets/person_m2.png"
}
]
}
]
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
How to set an image's width and height without stretching it?
The div simply replaces the img. Easily center or set the image to another offset. eg. url(pic) center top;; Repeat the image when...
Read more >Image - .NET MAUI
The .NET MAUI Image displays an image that can be loaded from a local file, a URI, or a stream.
Read more >How To Make A Responsive Background Image Using CSS?
In this blog learn the importance of responsive background images for seamless user ... Low-resolution images might stretch a bit to adjust.
Read more >Stretch function—ArcGIS Pro | Documentation
The Stretch function can be used to enhance images by changing brightness, contrast, gamma, and stretch types.
Read more >Preventing Blurry Pictures: The Keys to Clear Images
Nothing is more frustrating than blurry pictures. While you can try tinkering in a photo editing program, the best strategy is to start...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A patch can be fine, but we should be clear on whether this was a regression or not. If it was a regression, we definitely need to patch it. If .NET always behaved like this, we could wait till 1.3.
JavaScript and UWP behavior is correct, setting the “size” property to one of the sizes (small/medium/large) should force the image to that size, even if it means upscaling the image.
@almedina-ms assigning to you for post 1.2 investigation and fixing. We need to figure out if this is a regression or not. If it is, then it makes the case for a post 1.2 patch release else we can include it for 1.3 directly.