Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline emotes/ gifs in adaptive card #1645

Closed
Tyagit3 opened this issue Jun 24, 2018 · 7 comments
Closed

Inline emotes/ gifs in adaptive card #1645

Tyagit3 opened this issue Jun 24, 2018 · 7 comments
Labels

Comments

@Tyagit3
Copy link

Tyagit3 commented Jun 24, 2018

Is there a way to use a gif/emotes in an adaptive card?

@Kartik1607
Copy link

Adaptive cards support gif. Add the url of gif inside the image element something like

{
    "type":"Image",
    "url": "https://gifurl/"
}

@ignacionr
Copy link
Contributor

I believe @Tyagit3 means to mix 🗣 emoji inside 🙌 text. I can confirm that at least Unicode emoji works perfectly well if properly encoded into the JSON. See the image.

screen shot 2018-06-25 at 9 15 55 am

@ignacionr
Copy link
Contributor

ignacionr commented Jun 25, 2018

@Tyagit3 FYI I created a test that renders a card with a text block that includes Emoji. The test checks that the length of the text rendered is the same as the original string (making sure it didn't chop the chars or misinterpreted the sequence).

You can check it out at 9e7e9d1 ; if you feel this fulfills your doubt, go ahead and close this issue.

Thank you!

@Tyagit3
Copy link
Author

Tyagit3 commented Jun 26, 2018

@ignacionr This is a simple emoji. I was asking about something similar but to show animated emojis/ animojis.

@ignacionr
Copy link
Contributor

@Tyagit3 I will let the team answer; as a host creator and author, the expressiveness of Unicode Emoji is more than enough. To support your question for the team, it would be great to explain more your intention.

Some very opinionated guesses: you want to create an emotionally appealing content. If this is the case, an image that is close to the text can have an even greater effect. Pretty soon you will be able to use media too (e.g. video). Or you want to replace text in grammatically significant points of the phrasing, with animations. For the time being you could create columns and images. They would look alienated but then again, that kind of communication is already segmented/not smooth anyhow.

Kindly take into account this is my personal opinion.

  • Emojis are an important means of communication, and they are implicitly incorporated by supporting Unicode.
  • Inline animated images on the other hand, are not as valuable.
  • Block images (and soon media) are supported.

@Kartik1607
Copy link

Kartik1607 commented Jun 26, 2018

Can't wait for it.

Or you want to replace text in grammatically significant points of the phrasing, with animations

@Tyagit3 One thing you can do is to use markdown and add gif's in place of emojis. You would have to take care of image sizing though.

@andrewleader andrewleader changed the title Use of emotes/ gifs in adaptive card Inline emotes/ gifs in adaptive card Jul 22, 2018
@dclaux dclaux mentioned this issue Sep 7, 2018
6 tasks
@andrewleader
Copy link
Contributor

Tracking this feature request for inline animated emojis/GIFs here: #2525

Closing this question thread. Markdown with GIFs is a great workaround for now Kartik (but definitely has image sizing issues as you point out), thanks for that though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants