Page MenuHomePhabricator

VisualEditor: Dimensions of small images are lost in rendering
Closed, ResolvedPublic

Description

Images that have thumbnail sizes that are larger than the original should be rendered at the specified size, not the size of the original.

MediaWiki core does this, but somewhere between MediaWiki/Parsoid/VisualEditor the specified dimensions are lost.

For example, on https://www.mediawiki.org/wiki/VisualEditor/Team there are various uses of [[File:Wikimedia_Foundation_office_camera_shy.png]] (of which the full size is 140px). The thumbnail size on that page is 150px, and when viewing the page normally it is rendered at 150px (browser scales up from 140px non-thumb url), but when editing in VisualEditor the node has a width attribtue of 140 instead of 150.


Version: unspecified
Severity: normal

Details

Reference
bz54205