Page MenuHomePhabricator

Add information about available scaled images to list=allimages
Open, Needs TriagePublic

Description

In WMCZ-Tracker, I would appreciate being able to get scaled urls in list=allimages, to avoid ugly workarounds.

Would it be possible to add similar parameters as prop=imageinfo has?

Event Timeline

Urbanecm created this task.Jun 28 2019, 1:48 PM
Urbanecm moved this task from Inbox to Blocked/External on the WMCZ-Tracker board.
saper added a subscriber: saper.Jun 28 2019, 2:16 PM
saper renamed this task from Add image scaling option to list=allimages to Add information about available scaled images to list=allimages.Jun 28 2019, 2:31 PM
Anomie added a subscriber: Anomie.Jul 11 2019, 6:37 PM

The parameters in prop=imageinfo themselves aren't very good. See T89971: ApiQueryImageInfo is crufty, needs rewrite. Ideally T66214: Define an official thumb API would be done, then the API could just point to that.

Majavah updated the task description. (Show Details)Aug 3 2019, 11:38 PM
Restricted Application added a project: Core Platform Team. · View Herald TranscriptAug 3 2019, 11:38 PM
eprodromou added a subscriber: eprodromou.

This is a pretty interesting problem to have come up with the new Core REST API in design process. Should we implement there, since we're doing new image info endpoints anyway? Does this make a good user story for Core REST API?

Majavah updated the task description. (Show Details)Sep 24 2019, 2:30 PM

Whether this is implemented in the REST API or not, the feature request is still valid for MediaWiki-API.

Personally I wish someone would do T66214: Define an official thumb API. Then both APIs could just point to the image scaling endpoint for these use cases instead of having to define ways for clients to specify all the different thumbnail sizes they might want and then generate distinct URLs for all the different sizes.

CCicalese_WMF added a subscriber: CCicalese_WMF.

Per discussion with @eprodromou, this would most likely fall in a future initiative rather than CPT Initiatives (Core REST API in PHP).

@eprodromou Are you working at this one, or is this a form of cookie licking? :-)