Page MenuHomePhabricator

PageImages API - allow the return of multiple thumbsizes
Closed, DeclinedPublic

Description

A call to https://en.wikipedia.org/wiki/Special:ApiSandbox#action=query&format=json&prop=pageimages&titles=San+Francisco&piprop=thumbnail%7Cname&pithumbsize=250&pilicense=any
allows us to return the thumbnail url where the width is 250

However in the MCS for use in apps they want to be able to request urls for 3 sizes - 250, 640, 480 and 1024

We can rely on find and replace - but a better long term solution would be to add support for multiple pithumbsize parameters...

Event Timeline

I understand this better now. Apps don't rely on mobile view for this so YAGNI

Yeah, MCS only requests the largest thumbnail then calculates the smaller ones. We're really hoping for the new Thumbnail API to arrive, so that this list of thumbnail URLs is not needed anymore.