Display image attribution metadata at the bottom of the share card.
The imageinfo API endpoint could be the one to call.
Acceptance criteria
- author name and license information - design
- multiple author names should be truncated
| mfossati | |
| Mar 24 2026, 3:52 PM |
| F79095032: Screenshot 2026-05-01 at 4.55.54 PM.png | |
| Fri, May 1, 8:58 PM |
| F79095002: Screenshot 2026-05-01 at 4.53.59 PM.png | |
| Fri, May 1, 8:58 PM |
| F79091145: Screenshot 2026-05-01 at 4.22.16 PM.png | |
| Fri, May 1, 8:58 PM |
| F79090495: Screenshot 2026-05-01 at 4.11.47 PM.png | |
| Fri, May 1, 8:58 PM |
| F76129224: image.png | |
| Wed, Apr 15, 11:47 PM |
| F76120494: image.png | |
| Wed, Apr 15, 10:15 PM |
Display image attribution metadata at the bottom of the share card.
The imageinfo API endpoint could be the one to call.
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| [Share Highlight] Author and license info for image | mediawiki/extensions/ReaderExperiments | master | +131 -34 |
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Open | None | T416432 [Epic] Share Card experiment | |||
| Resolved | bvibber | T421132 [Share Highlights] Include image credits |
work in progress using Eric's suggestion to piggyback on MMV's ImageInfo, ImageModel and License code; so far so good
current state, with link styles flattened (since they won't be clickable in the PNG :D)
Open questions for design:
Happy with the current results after last checkin. Note T423210 is the followup with the tinting fix for the wordmark and CC icons!
Change #1271982 had a related patch set uploaded (by Bvibber; author: Bvibber):
[mediawiki/extensions/ReaderExperiments@master] [Share Highlight] Author and license info for image
Change #1271982 merged by jenkins-bot:
[mediawiki/extensions/ReaderExperiments@master] [Share Highlight] Author and license info for image
Testing Summary
Tested on enwiki beta; Chrome, FF, Safari - the latests versions
| author name and license info are displayed - https://en.wikipedia.beta.wmcloud.org/wiki/Antarctica?shareHighlight=1 | multiple author names are truncated - https://en.wikipedia.beta.wmcloud.org/wiki/Earth?shareHighlight=1 Note: in this example not the full credits are displayed, i.e only "Ron" is displayed without the last name |
More good examples: