Last modified: 2012-07-26 19:13:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40343, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38343 - When uploading an image confirmation page loads image in full resolution
When uploading an image confirmation page loads image in full resolution
Status: RESOLVED FIXED
Product: WikiLoves Monuments Mobile
Classification: Unclassified
Upload (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 37577
  Show dependency treegraph
 
Reported: 2012-07-11 21:04 UTC by Tomasz Finc
Modified: 2012-07-26 19:13 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tomasz Finc 2012-07-11 21:04:23 UTC
Instead lets show a scaled down version that loads faster
Comment 1 Jon 2012-07-25 22:23:39 UTC
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...
Comment 2 Platonides 2012-07-25 22:30:22 UTC
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.
Comment 3 Jon 2012-07-26 00:43:42 UTC
Thanks Platonides! I think this does the right think - Can you review this?:
https://github.com/jdlrobson/WLMMobile/pull/new/thumb38343

?
Comment 4 Jon 2012-07-26 00:44:09 UTC
Sorry link should be https://github.com/wikimedia/WLMMobile/pull/79

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links