Page MenuHomePhabricator

Thumbnails for tall/narrow or short/wide images are unrecognisable when adding image statements
Open, Needs TriagePublicBUG REPORT

Assigned To
None
Authored By
Nikki
Sun, Apr 7, 1:01 PM
Referenced Files
F44995798: image-search-repeat-6.png
Sun, Apr 7, 1:01 PM
F44995784: image-search-repeat-4.png
Sun, Apr 7, 1:01 PM
F44995793: image-search-repeat-5.png
Sun, Apr 7, 1:01 PM
F44991421: image-search-repeat-2.png
Sun, Apr 7, 1:01 PM
F44991051: image-search-repeat.png
Sun, Apr 7, 1:01 PM
Subscribers

Description

Steps to replicate the issue (include links if applicable):

What happens?:

The preview for "Vertical bar 1-08.svg" displays vertical stripes:

image-search-repeat.png (143×926 px, 17 KB)

"Line example.svg" displays a solid black box:

image-search-repeat-2.png (144×923 px, 15 KB)

"Ray (A, B, C).svg" displays a blurry black line:

image-search-repeat-5.png (143×924 px, 15 KB)

"Tetracontan structure.svg" displays a grey smudge:

image-search-repeat-4.png (143×925 px, 14 KB)

"Osmanlıca matbu ayraç 6.svg" displays a solid grey box:

image-search-repeat-6.png (144×924 px, 17 KB)

What should have happened instead?:

The preview should show a recognisable version of the image, e.g. "Vertical bar 1-08.svg" should be a single vertical line, "Line example.svg" should be a single horizontal line.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

The thumbnails are missing background-repeat: no-repeat;, so the image is being shown multiple times.

background-size: auto 50px; seems to be causing short wide images to be stretched to fit/zoomed-in.