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

Image not get fit inside herocard,Thumbnail card.

Open chetanmekha opened this issue 10 years ago • 9 comments

Hello Folks, I want to set image in hero/thumbnail card within cards boundaries. The image get set to card but not getting fit inside card. how can i achieve it. Please guide me.

chetanmekha avatar Nov 29 '16 07:11 chetanmekha

Which channel are you using?

danmarshall avatar Dec 02 '16 00:12 danmarshall

I have faced similar issue with using Skype channel. The image kept getting scaled down and then cropped on the upper and lower edges. The image dimension was 512x512.

abhishan avatar Dec 02 '16 20:12 abhishan

I tried with facebook and skype and getting the same issue.

chetanmekha avatar Dec 06 '16 10:12 chetanmekha

Hi @chetanmekha and @abhishan, the behavior depends on the channel.

For Facebook, the image will be displayed uncropped if the aspect ratio is 1.91:1. You can see documentation here: https://developers.facebook.com/docs/messenger-platform/send-api-reference/generic-template

For Skype, I don't have the aspect ratio handy, but I've asked the Skype team to help clarify.

dandriscoll avatar Dec 21 '16 22:12 dandriscoll

Hello Team, Thanks for the feedback. I am little bit excited regarding Image scaling functionality, up to when we can expect this to get's delivered to us?

chetanmekha avatar Jan 06 '17 06:01 chetanmekha

The aspect ratio for Skype is 16:9 for hero cards and 1:1 for thumbnail cards (see https://docs.botframework.com/en-us/skype/getting-started/#cards-and-buttons). The image is scaled (while maintaining the aspect ratio) up or down in size until it minimally covers the image space, and then cropped horizontally and vertically from the center.

nickcordrey avatar Jan 09 '17 19:01 nickcordrey

Is it possible to limit no of images to show in screen with any parameter? Also image size in not able to get reduced? Please help me

sajadhaja avatar Sep 22 '17 12:09 sajadhaja

Please add a feature in hero card and thumbnail card to fix the size of the image. @dandriscoll

singhsurya avatar Oct 12 '17 07:10 singhsurya

@singhsurya You are commenting on a closed issue. If you have a new feature request, please open a new issue.

However, as stated by Dan earlier in this thread: the channel is responsible for image size rendering. So, a feature request to allow specifying image size would most likely need to be filed with the channel's forum.

EricDahlvang avatar Oct 12 '17 23:10 EricDahlvang