Last modified: 2014-06-23 13:42:40 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 T68852, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66852 - Distorted thumbnail for audio files due to wrong size
Distorted thumbnail for audio files due to wrong size
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
TimedMediaHandler (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-19 16:58 UTC by Rainer Rillke @commons.wikimedia
Modified: 2014-06-23 13:42 UTC (History)
7 users (show)

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


Attachments

Description Rainer Rillke @commons.wikimedia 2014-06-19 16:58:05 UTC
When querying the API for audio thumbnails (yeah, appears to be stupid ...) it returns a height and width in a manner that let the thumb look distorted.

Example:
https://commons.wikimedia.org/w/api.php?action=query&format=jsonfm&iiprop=url|size|timestamp|user|sha1|comment|mime&iiurlheight=120&iiurlwidth=120&intoken=&prop=imageinfo&titles=File:Ca-Rosa_Lavi%C3%B1a_Carreras-article.flac

Result:
"thumburl": "https://bits.wikimedia.org/static-1.24wmf9/skins/common/images/icons/fileicon-ogg.png"
"thumbwidth": 120
"thumbheight": 13

https://bits.wikimedia.org/static-1.24wmf9/skins/common/images/icons/fileicon-ogg.png is a 120x120px file which is then squashed to 13px height
Comment 1 Bawolff (Brian Wolff) 2014-06-19 17:09:14 UTC
I guess its returning the width/height of the JS player, but then outputting the url for file icon which really isn't used.

Maybe it should be outputting https://commons.wikimedia.org/wiki/File:Ca-Rosa_Lavi%C3%B1a_Carreras-article.flac?embedplayer=yes (Once the bug on that is fixed) as a url to put in an iframe or something.

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


Navigation
Links