Page MenuHomePhabricator

VisualEditor: "Thumb" images should display in wiki default thumb size
Closed, ResolvedPublic


Screenshot of page in view mode

Show thumbnail in user preference size in edit mode.

  1. Set user preference to 300 pixel: "Thumbnail size:" of
  1. Edit page with image included as standard thumb.

Thumbnail is shown in a smaller size instead of the user preference size.

Version: unspecified
Severity: normal
See Also:


thumb.PNG (411×1 px, 163 KB)



Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:18 AM
bzimport set Reference to bz47804.

Created attachment 12197
Screenshot in edit mode with smaller thumbnail


thumb_edit_mode.PNG (402×1 px, 69 KB)

Confirmed with Gabriel (Parsoid team) that this [should|is going to be] solved in VE.

  • Bug 52487 has been marked as a duplicate of this bug. ***

User preference and wiki-default sizes specify the maximum width of an image, regardless of dimensions or aspect ratio, but VE scales the images to fit in a 190px by 212px box.

This means that some images, particularly tall thin ones such as full-length portraits, get rendered at very different sizes in VE edit mode to view mode, with consequential impact on the layout of surrounding content.

French Wikipedians would like VE to follow the local convention that thumbnails are only displayed with the "upright" option (

Change 114420 had a related patch set uploaded by Mooeypoo:
[wip] Set up wiki-default image size

Change 114420 merged by jenkins-bot:
Set up wiki-default image size

We have now implemented displaying default images in local wiki default size, and explicitly *not* user-preference size.

This is because the editing surface should encourage users to make the right kind of edits for all users, not just themselves. If a page has an image at default and a second at 300px, and a user with a default of 400px resizes one of the images to fit in with the other, a user with a default of 200px (e.g. an anonymous user) will get a different experience and may try to revert (or the change will have a different effect to what was intended).

I'm therefore re-titling this bug to just refer to local wiki size, and marking as FIXED. Happy to discuss further.