Page MenuHomePhabricator

Certain thumbnail has wrong intrinsic dimension
Open, Needs TriagePublic

Description

Showcase: https://en.wikipedia.org/wiki/User:Fireattack/thumbnail_bug

The generated 221px width one:
https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Higurashi.JPG/221px-Higurashi.JPG

actually has intrinsic size of 220x229px, and are stretched to 221x229px in presentation, which makes it obviously blurry compared to the other three, due to the fact it's not a pixel-to-pixel presentation.

The symptom matches T26763, but the difference is I don't even call the thumbnail by height, I just called it by width.

Event Timeline

Lea_WMDE subscribed.

Removing Move-Files-To-Commons, since it is specifically for the FileImporter/FileExporter extensions that allow moves of files from some wiki to another wiki

Sorry, that must be a typo. Meant to add "MediaWiki-File-management" (like T26763).

Might be T282385#7073151 ?

Sounds related, but that ticket seem to say we're cropping it than stretching it?

Either way, if only the width is assigned, the "box" should be the same as the intrinsic dimension of the image (regardless if it's cropped or not), so no stretch should even be needed.