Last modified: 2007-01-18 22:09:19 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 T10682, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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.

--user:freakofnurture
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.


Navigation
Links