question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[.NET] Low resolution images in an image set don't stretch as they do on other platforms

See original GitHub issue

Platform

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): image

.NET behavior image

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:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewleadercommented, May 20, 2019

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.

0reactions
shalinijoshi19commented, May 20, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found