Last modified: 2014-11-18 18:07:29 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 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