botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Image not fully visible using CardImage feature of HeroCard in skype and facebook

Open senthil2m opened this issue 10 years ago • 2 comments

Hi,

I used CardImage in HeroCard to render an image of resolution 450*350 (smartphone jpeg image url) in node.js sample code. But the image rendered is not fully visible in skype and facebook channel. Part of image at the top and bottom is cut in these channels but same thing works fine in webchat with full image displayed.

Need help to render full image in facebook and skype channels using nodejs.

Thanks, Senthil M

senthil2m avatar Sep 20 '16 10:09 senthil2m

I don't believe we're truncating the image in the channel adapters, but it's possible the channel itself chooses to crop the image to preserve the aspect ratio instead of displaying empty bars on the side (and perhaps web chat allows some flexibility in the available image space).

willportnoy avatar Sep 20 '16 18:09 willportnoy

Yes, Skype and Facebok crop images.

  • Facebook https://developers.facebook.com/docs/messenger-platform/guidelines
  • Skype https://docs.botframework.com/en-us/skype/getting-started/#cards-and-buttons

Hope this helps

Andrea-Orimoto avatar Sep 30 '16 22:09 Andrea-Orimoto