Forum Discussion

Karunakaran_GN's avatar
Karunakaran_GN
Copper Contributor
Aug 27, 2023

Images showing distorted on MS Teams due to inline style

We have a PVA bot running on MS Teams where the bot is rendering the content containing images (crawled from ServiceNOW) using a simple Message node. We see the images are distorted where as same images rendered properly on Canvas. We also observed inliine styles applied on these images which is probably causing the issue. Please suggest.

    • Karunakaran_GN's avatar
      Karunakaran_GN
      Copper Contributor
      Thanks for the reponse.
      Unfortunatly we cannot shaer the JSON as this contains the images links which are private. We can have a call if possible so that we can walk you throught he issue.

      Steps to reproduce,
      1) Create a message content along with a image url
      2) Fetch an dshow the message content in Message node in PVA topic
      3) Publish this bot to Teams
      4) Inspect the displayed image on Teams browser you can see some inlise styles applied

      • Prasad_Das-MSFT's avatar
        Prasad_Das-MSFT
        Icon for Microsoft rankMicrosoft

        Karunakaran_GN - We tried to repro this issue by creating a PVA Bot and publishing the Bot in MS Teams, however at our end the card having images is rendering fine.

        Card JSON:
        {
        "type": "AdaptiveCard",
        "version": "1.0",
        "body": [
        {
        "type": "TextBlock",
        "text": "Here is a ninja cat"
        },
        {
        "type": "Image",
        "url": "http://adaptivecards.io/content/cats/1.png"
        }
        ]
        }



        Thanks, 

        Prasad Das

        ------------------------------------------------------------------------------------------ 

        If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link.

Resources