There are 20 BMP files with "UNKNOWN" img_media_type on enwiki, see https://en.wikipedia.org/wiki/Special:MediaStatistics.
They're all super old.
There are 20 BMP files with "UNKNOWN" img_media_type on enwiki, see https://en.wikipedia.org/wiki/Special:MediaStatistics.
They're all super old.
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
refreshImageMetadata: Allow filtering by 'img_media_type' too | mediawiki/core | master | +12 -1 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T130513 BMP images are served with Content-Type: unknown/unknown | |||
Resolved | matmarex | T131157 Files with "UNKNOWN" img_media_type |
mysql:research@analytics-store.eqiad.wmnet [enwiki]> select img_name, img_timestamp from image where img_media_type='UNKNOWN'; +-----------------------------------+----------------+ | img_name | img_timestamp | +-----------------------------------+----------------+ | Escudokolnsburgrad.bmp | 20071107235841 | | Flat_chisel.bmp | 20071006011721 | | Julianity.bmp | 20080130185940 | | Kilcoocrest.bmp | 20070928191324 | | Leave_mes_talk.bmp | 20080114010558 | | Logon.bmp | 20080115223846 | | Magneprop.bmp | 20071201003812 | | Moatcclogo.bmp | 20071116234455 | | New_Philanthropy_Capital_logo.bmp | 20071025114753 | | PaulBrowntree.bmp | 20080126032848 | | Router1.bmp | 20071217164542 | | Router2.bmp | 20071217164952 | | Sgbau_logo.bmp | 20071210214013 | | Signposts.bmp | 20080114010123 | | SpeaksEnglish.bmp | 20071013024542 | | StAndrewsManagement.bmp | 20071203155709 | | Timeline-191_map2-2.bmp | 20070926212447 | | Timeline-191_map2-4.bmp | 20071013204657 | | Total_Control.bmp | 20070922204747 | | Triple_Padlock.bmp | 20080125011145 | +-----------------------------------+----------------+
There's a bunch more on other wikis, not just BMP, but just about every kind of file type, really. Not posting the full list, since some of the wikis are private.
Wiki | Count of UNKNOWN img_media_type |
---|---|
aawiki | 1 |
afwiki | 1 |
arwiki | 4 |
bgwiki | 1 |
boardwiki | 1 |
cawiki | 1 |
collabwiki | 15 |
emlwiki | 1 |
enwiki | 20 |
enwikiversity | 3 |
etwiki | 8 |
fiwiki | 6 |
fiwikibooks | 1 |
frwiki | 3 |
hewiki | 9 |
hewiktionary | 1 |
hrwiki | 22 |
huwiki | 21 |
internalwiki | 12 |
iswiki | 1 |
itwiki | 1 |
jawiki | 3 |
kmwiki | 6 |
kywiki | 1 |
ltwiki | 3 |
metawiki | 4 |
mkwiki | 9 |
mrwiki | 1 |
mswiki | 1 |
nowiki | 1 |
officewiki | 27 |
ptwikibooks | 1 |
rowiki | 1 |
ruwiki | 5 |
ruwiktionary | 1 |
siwiki | 9 |
skwiki | 1 |
slwiki | 5 |
test2wiki | 2 |
thwiki | 4 |
trwiki | 6 |
ukwiki | 3 |
urwiki | 1 |
viwiki | 4 |
viwikibooks | 2 |
wikimania2006wiki | 12 |
zhwiki | 5 |
There's already a maintenance script which can fix this (refreshImageMetadata.php), but it needs a small tweak.
Change 280246 had a related patch set uploaded (by Bartosz Dziewoński):
refreshImageMetadata: Allow filtering by 'img_media_type' too
After the above is merged, we should run php maintenance/refreshImageMetadata.php --mediatype=UNKNOWN --force on each of the 47 wikis listed above (T131157#2157759).
Change 280246 merged by jenkins-bot:
refreshImageMetadata: Allow filtering by 'img_media_type' too
Thanks! That fixed almost all of them, closing.
I re-ran my query and there are four more unknown media type files: