Last modified: 2007-01-18 22:09:19 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 8682 - non-absolute size specification for images
non-absolute size specification for images
Status: RESOLVED DUPLICATE of bug 7003
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-01-18 08:05 UTC by freakofnurture
Modified: 2007-01-18 22:09 UTC (History)
0 users

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


Description freakofnurture 2007-01-18 08:05:04 UTC
In lieu of a pixel size specified as, say, "80px", we should allow for the display size to 
be specified as a percentage of the default size, e.g.: [[Image:Title.fmt|20%]] To display 
it at 1/5 the default height and width.

For inline (non-floating) images, it would be even more helpful to add a mode that would 
scale the image's height to be equal/proportionate to the font-size of the surrounding 
text. This would be particularly handy in articles discussing runic symbols, hieroglphics, 
Led Zeppelin's fourth album, the "Artist Formerly Known as Prince" symbol, and any other 
symbols not found in Unicode. Something like [[Image:Title.fmt|fontsize]] to make it the 
same height as the words left and right of the image.

Comment 1 Brion Vibber 2007-01-18 22:09:19 UTC
General percentages are usually pretty unreliable as the file may be reuploaded
at a higher or lower resolution.

Duping to bug 7003, which has some other percentage variants.

Note that matching font size is not really possible, as only the browser knows
the font size and the scaling is done server-side. (While it might be possible
to try to match, sometimes, on browser-side the scaling will be awful.)

*** This bug has been marked as a duplicate of 7003 ***

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