Page MenuHomePhabricator

VisualEditor: Image size is shrinking to a dot size after exceeding a specific value while setting the image size
Closed, ResolvedPublic

Description

Screenshot

Steps to reproduce:

1.Open this page with VE:http://en.wikipedia.beta.wmflabs.org/wiki/12thfebchrome?veaction=edit

2.Go to the Media Settings for the image:[[File:Dau ho thoi Ho.png]]

3.Set the Width size of the image to 8000 and Apply changes (Works fine)

4.Set the Width of the image to 8000000 and apply changes (Still work fine)

5.Set the Width of the image to 80000000 and Apply changes

Observed Result:
The image shrinks to a dot size in the VE mode

See the screenshot attached

Test Environment: http://en.wikipedia.beta.wmflabs.org/
Browser: Chrome Version 26.0.1410.65
OS: MAC OS X 10. 8. 5


Version: unspecified
Severity: normal

Attached:

Screen_Shot_2014-02-12_at_11.15.15_AM.png (322×1 px, 35 KB)

Details

Reference
bz61282

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 3:05 AM
bzimport set Reference to bz61282.

I can't replicate the exact phenomenon, but it does seem to show an issue with maximum dimensions.

When I increase the size (even to the 80000000 width) I just get a humongous version of the stretched image.

I'm looking into the conditions of limiting image scale size.

Change 115307 had a related patch set uploaded by Mooeypoo:
[wip] Limit thumbnail dimensions in media edit dialog

https://gerrit.wikimedia.org/r/115307

Change 115307 merged by jenkins-bot:
Limit thumbnail dimensions in media edit dialog

https://gerrit.wikimedia.org/r/115307

I can still reproduce this issue.

Change 115939 had a related patch set uploaded by Mooeypoo:
[wip] Deal with 'none'/'border' and default size in media edit

https://gerrit.wikimedia.org/r/115939

Change 115939 merged by jenkins-bot:
Deal with 'none'/'border' and default size in media edit

https://gerrit.wikimedia.org/r/115939

I can still reproduce this issue for the image :[[File:Dau ho thoi Ho.png]] with Frame and Basic Image type

I see this image as a huge one. There is a bug here that the context menu is hidden outside the page (should be reported separately) but I don't see this as a dot-size.

Checked under Windows on Chrome version 33.0.1750.146 m and Firefox 27.0.1

In both cases, I see this image as humongous, which is exactly as it appears in the "view" mode.

I can't manage to replicate the "dot-image" effect.

Created attachment 14761
This is how it appears in the review changes in the save dialog

Attached:

Screen_Shot_2014-03-06_at_11.00.48_AM.png (429×666 px, 23 KB)

I can't replicate here; I set the image even up to "800000000000000000000" width and still it resized as "expected".

Created attachment 14785
Reproduced on windows8-chrome

Attached:

windows_8-chrome.png (768×1 px, 151 KB)

This looks like it's now fixed, I think.