microsoft / microsoft/AdaptiveCards

[All Platforms] Allow card authors to specify fallback element for when an Image element fails to load

Open
#4,896 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Request
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

What platform is your feature request related to? (Delete other platforms).

  • .NET HTML
  • .NET WPF
  • Android
  • iOS
  • JavaScript
  • UWP

Is your feature request related to a problem? Please describe.
image

We obtain urls of images from a cdn, however, we sometimes do not know if these images are valid or working urls.

When creating the adaptive card object, we would set these urls unknowingly and they would fail on the front end. I am hoping that a feature can be added to add a fallback capability for these failing images.

Describe the solution you'd like
image

I am hoping to have it set up so an image element, when its url fails to resolve, resorts to the next image element in the fallback field.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no implementation files or tests and spans .NET HTML, WPF, Android, iOS, JavaScript, and UWP. Start by locating Image element fallback behavior in each listed platform; done means a failed image URL selects the next fallback image consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.