https://bugzilla.wikimedia.org/show_bug.cgi?id=55431
Web browser: ---
Bug ID: 55431
Summary: Reupload should purge File page (aka image has
malformed dimensions)
Product: MediaWiki
Version: 1.22-git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: File management
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Just now someone reported in #wikimedia-commons that this file:
https://commons.wikimedia.org/wiki/File:%D0%A6%D0%B5%D1%80%D0%BA%D0%B2%D0%B0_%D1%81%D0%B2%D1%8F%D1%82%D0%BE%D0%B3%D0%BE_%D0%9C%D0%B8%D1%85%D0%B0%D1%97%D0%BB%D0%B0_%28%D1%81._%D0%A7%D0%B5%D1%81%D0%BD%D0%B8%D0%BA%D0%B8%29_%D0%92%D0%B8%D0%B4_%D1%96%D0%B7_%D0%B7%D0%B0%D0%B4%D1%83.JPG
is displayed on that page with the wrong dimensions (making it look completely
distorted, resized and scaled out of proportion by the browser).
Both the main thumbnail on top and the top row of the File history were
affected.
They've purged it and that fixed it. However it was the MediaWiki-page that
needed purging, the file itself was fine.
The main reason this happens is because we link to the canonical "current"
version of an image by a version-less url. As a result, when a reupload occurs
that changes the dimension (e.g. a crop, rotate, whatever), and this canonical
url is purged, every existing <img> referencing that url will show the image in
the browser out of proportion because we hardcode the width/height everywhere.
Note:
* The example file above has a different unrelated problem (the first revision
of the file has gone missing, 404).
* I wonder whether this is limited to the File page. I doubt it. This probably
affects usage in articles as well, including cross-wiki.
Now, before someone says it is unlikely the dimensions of a file change, I"ll
respond: It is unlikely that a file changes at all because (at least Commons)
actively discourages re-upload. It should only be done for non-trivial changes
(anything else should be done as a new upload). So the few re-uploads that do
happen quite change the dimensions (e.g. fix wrong orientation, or crop away
borders of some kind).
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l