Last modified: 2014-05-29 19:45:05 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 T45336, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43336 - Images which have no size specified default to width=200?
Images which have no size specified default to width=200?
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal minor
: ---
Assigned To: C. Scott Ananian
:
Depends on:
Blocks: 54844
  Show dependency treegraph
 
Reported: 2012-12-21 22:45 UTC by James Forrester
Modified: 2014-05-29 19:45 UTC (History)
2 users (show)

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


Attachments

Description James Forrester 2012-12-21 22:45:43 UTC
[From editor submission.]

Images which have no size specified default to width=200 even when they're smaller than this; see for example http://parsoid.wmflabs.org/_rt/en/Template:US-radio-bio-stub where the first image (with no size specified) becomes:

<img height="" width="200px" src="http://en.wikipedia.org/w?title=Special:FilePath/Radio_icon.png&amp;width=200" alt="Stub icon 1">

... whereas the second, with it specified as '35px', works as expected:

<img height="" width="35" src="http://en.wikipedia.org/w?title=Special:FilePath/Flag_of_the_United_States.svg&amp;width=35" alt="Stub icon 2">
Comment 1 Gabriel Wicke 2012-12-21 22:49:49 UTC
So far we have no information about image sizes in Parsoid, and will need to perform API queries to retrieve this information. We will also have to retrieve the configured default thumbnail size (if available) through the MediaWiki web API.

I'm classifying this as low priority for now as our normal priority bugs concern basic editing and round-tripping.
Comment 2 Andre Klapper 2013-07-04 10:34:05 UTC
[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]
Comment 3 C. Scott Ananian 2013-09-11 17:56:04 UTC
This seems very similar to bug 50523.  We set the mw-default-size class; VE should be observing this when it applies display styles.  (The current default image size should probably not be hardcoded into the DOM representation.)
Comment 4 Gabriel Wicke 2014-02-28 19:35:39 UTC
We have since changed the default to 220px, but still don't have access to the configured default thumb size in the wiki. We should probably expose $wgThumbLimits[ $wgDefaultUserOptions['thumbsize'] ] in the siteinfo api end point, and then use that for rendering.

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


Navigation
Links