Last modified: 2014-11-18 18:07:29 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 T15650, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13650 - decimal fractions in image sizes are parsed incorrectly
decimal fractions in image sizes are parsed incorrectly
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Low normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-04-08 09:47 UTC by Tisza Gergő
Modified: 2014-11-18 18:07 UTC (History)
2 users (show)

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


Attachments

Description Tisza Gergő 2008-04-08 09:47:47 UTC
Images with a width containing a decimal dot are parsed incorrectly, width the dot being disregarded (so that [[Image:Foo|3.25px]] will be 325 pixel wide). See for example: http://hu.wikipedia.org/w/index.php?title=User_vita:Tgr&diff=prev&oldid=3050910

Using fractions in image sizes does not make much sense, nevertheless it is used by a number of people (especially in signatures), and when a lot of images suddenly increase by one or two orders of magnitude, the result is not pretty. (Note also that CSS does allow for such sizes: http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-length )
Comment 1 Tisza Gergő 2008-04-08 12:23:42 UTC
Correction: it does not only disregard the decimal dot, but the whole width parameter. The image appears at its original size.
Comment 2 Brion Vibber 2008-04-09 20:22:57 UTC
Well, that'd be because it's invalid input -- now that we have improved the input validation, it's rejected.

We could perhaps allow them; they'd still get rounded off of course.

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


Navigation
Links