Instead lets show a scaled down version that loads faster
Version: unspecified
Severity: normal
Instead lets show a scaled down version that loads faster
Version: unspecified
Severity: normal
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | None | T40648 Wiki Loves Monuments 2012 (tracking) | |||
| Resolved | None | T39577 Tracking bug for 1.0beta1 release of WLM app | |||
| Resolved | None | T40343 When uploading an image confirmation page loads image in full resolution |
The response has a url to the full size image but as far as I can see it's not clear how to deduce the thumbnail url from it...
AS far as it is done by the mobile app, you can cheat and compute the url, knowing that wmf servers will render it on demand.
The url will be like: http://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Lake_Bondhus_Norway_2862.jpg/600px-Lake_Bondhus_Norway_2862.jpg
Where 600px- is the thumbnail resolution (must be less than the image dimensions). e/e9 come from the two first characters of the filename md5.
Thanks Platonides! I think this does the right think - Can you review this?:
https://github.com/jdlrobson/WLMMobile/pull/new/thumb38343
?