Last modified: 2011-03-13 18:05:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 7049 - Allow setting of image dimensions by height only
Allow setting of image dimensions by height only
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2006-08-18 01:06 UTC by Danny B.
Modified: 2011-03-13 18:05 UTC (History)
0 users

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


Description Danny B. 2006-08-18 01:06:13 UTC
[[Image:Foo.png|30px]] sets fixed width and height in ratio
[[Image:Foo.png|30x50px]] sets a box to fit in

could something like
[[Image:Foo.png|x30px]] set fixed height and width in ratio?
Comment 1 Duncan Harris 2007-05-27 16:11:04 UTC
Why can't you just calculate the corresponding required width from the height/width ratio?
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-05-27 18:10:03 UTC
Aspect ratio may change, and is different for every image.  It's probably better to have this in a relatively simple and consistent fashion.

Note that it's possible to do this with


but that's rather unintuitive and hackish.  A better syntax might be:

[[Image:Foo.png|30px high]]
Comment 3 Brion Vibber 2007-05-30 19:18:37 UTC
Use the box if required. In general you wouldn't want a 300000 pixel wide image anyway, you would want to set a reasonable box size.

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