Last modified: 2014-03-20 12:33:36 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 T54522, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52522 - Request library for accessing file metadata
Request library for accessing file metadata
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Low enhancement with 4 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-04 10:48 UTC by Mr. Stradivarius
Modified: 2014-03-20 12:33 UTC (History)
10 users (show)

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


Attachments

Description Mr. Stradivarius 2013-08-04 10:48:08 UTC
It would be useful to be able to access file metadata from Scribunto, particularly the height and width of images. This has already been requested a couple of times on [[Wikipedia:Lua requests]]:

* https://en.wikipedia.org/w/index.php?title=Wikipedia:Lua_requests&oldid=567090859#Image_aspect_ratio
* https://en.wikipedia.org/wiki/Wikipedia:Lua_requests/Archive_2#File_information

Is there any chance of getting a new library to enable this functionality?
Comment 1 Bryan Stephenson 2013-10-07 22:16:53 UTC
Specifically, this will be useful on Wikivoyage, where every main namespace page has a banner image which must have a 7:1 aspect ratio. We need a way to check and tag them automatically for cropping, instead of always checking the file pages one-by-one and doing the math.
Comment 2 Jarek Tuszynski 2014-03-20 12:33:36 UTC
I just come here to request the same. I was planning to write some code for automatically creating KML files for georeferencing map images, based on 3 anchor points where user provides latitude and longitude for 3 points on the map. Dimension of the image is one of the elements I would need to have. I was surprised to discover we could not access it.

See also this wikitech-l discusion: https://www.mail-archive.com/wikitech-l@lists.wikimedia.org/msg73250.html

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


Navigation
Links