Last modified: 2014-05-29 19:45:05 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&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&width=35" alt="Stub icon 2">
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.
[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]
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.)
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.