Last modified: 2011-03-13 18:05:10 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 T9049, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7049 - Allow setting of image dimensions by height only
Allow setting of image dimensions by height only
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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

[[Image:Foo.png|3000000x30px]]

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.


Navigation
Links