Page MenuHomePhabricator

[Share Highlights] Include image credits
Closed, ResolvedPublic5 Estimated Story Points

Description

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
NOTE: check with Adam or Dmitry Brant (mobile team) to see how they resolved
NOTE: if this expands, we will make a follow-up story

Event Timeline

HSwan-WMF set the point value for this task to 5.

image.png (1×1 px, 1 MB)

work in progress using Eric's suggestion to piggyback on MMV's ImageInfo, ImageModel and License code; so far so good

image.png (746×712 px, 185 KB)

current state, with link styles flattened (since they won't be clickable in the PNG :D)

Open questions for design:

  • should the CC/BY/SA icons reflect the image license or the text license? either is easy to implement (image is done; text can be hardcoded) but it's unclear from looking at and we may want to tweak it with a label
  • the author metadata may include links; as eric helpfully points out these will be all flattened by the PNGification anyway :D so I've stripped the visible formatting in the style. Is this fine or should we handle these links some other way, like by listing the URL?
  • not a question per se, but we should find and test some images with large author lists to confirm the styles are sensible :D

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

https://gerrit.wikimedia.org/r/1271982

egardner changed the task status from Open to In Progress.Mon, Apr 20, 7:14 PM

Change #1271982 merged by jenkins-bot:

[mediawiki/extensions/ReaderExperiments@master] [Share Highlight] Author and license info for image

https://gerrit.wikimedia.org/r/1271982

Etonkovidova subscribed.

Testing Summary
Tested on enwiki beta; Chrome, FF, Safari - the latests versions

  • the AC from the task description are done, see the eamples:
author name and license info are displayed - https://en.wikipedia.beta.wmcloud.org/wiki/Antarctica?shareHighlight=1
Screenshot 2026-05-01 at 4.11.47 PM.png (1×1 px, 1 MB)
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
Screenshot 2026-05-01 at 4.22.16 PM.png (1×1 px, 1 MB)

More good examples:

Screenshot 2026-05-01 at 4.53.59 PM.png (940×558 px, 452 KB)
Screenshot 2026-05-01 at 4.55.54 PM.png (914×520 px, 432 KB)