Page MenuHomePhabricator

Preview images from Wikimedia Commons cannot be displayed properly
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
Yiming
Jan 6 2025, 9:20 AM
Referenced Files
F58133663: image.png
Jan 6 2025, 12:03 PM
F58133654: image.png
Jan 6 2025, 12:03 PM
F58133054: image.png
Jan 6 2025, 9:20 AM
F58133051: image.png
Jan 6 2025, 9:20 AM
F58133047: image.png
Jan 6 2025, 9:20 AM

Description

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

What happens?:
The image cannot be loaded as normal when the user accesses it, except in its original resolution.

What should have happened instead?:
Preview images and other resolution images should load fine.

Other information (browser name/version, screenshots, etc.):
The same problem can be found in any Wikimedia projects. I have received several reports of this problem from guest.
Some screenshots of this problem are attached to this report.

And some photos with the same problem:
File:Coat_of_Arms_of_the_18th_Duchess_of_Alba_(Order_of_Isabella_the_Catholic).svg

Thank you.

image.png (570×939 px, 65 KB)

image.png (442×818 px, 65 KB)

image.png (810×1 px, 69 KB)

Event Timeline

Cannot reproduce from Central Europe; works as expected here.

What's the exact output (except for your IP) if you try to directly access the thumbnail at https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Apostolic_Nunciature_to_China_(2015-).jpg/546px-Apostolic_Nunciature_to_China_(2015-).jpg and https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Apostolic_Nunciature_to_China_%282015-%29.jpg/364px-Apostolic_Nunciature_to_China_%282015-%29.jpg ?

I'm a bit confused why the text on the File page says "Size of this preview: 364 × 600 pixels." but it opens the 546px image instead of the 364px image...

FWIW, this thumb is in both swift clusters:

root@ms-fe2009:/home/mvernon# swift stat wikipedia-commons-local-thumb.f8 'f/f8/Apostolic_Nunciature_to_China_(2015-).jpg/546px-Apostolic_Nunciature_to_China_(2015-).jpg'
               Account: AUTH_mw
             Container: wikipedia-commons-local-thumb.f8
                Object: f/f8/Apostolic_Nunciature_to_China_(2015-).jpg/546px-Apostolic_Nunciature_to_China_(2015-).jpg
          Content Type: image/jpeg
        Content Length: 144190
         Last Modified: Wed, 03 Apr 2024 07:22:45 GMT
                  ETag: 5f9e329f82e179b73a55f3769d767e3d
   Content-Disposition: inline;filename*=UTF-8''Apostolic_Nunciature_to_China_(2015-).jpg
           X-Timestamp: 1712128964.95369
         Accept-Ranges: bytes
            X-Trans-Id: tx34ced551e2004795893fd-00677ba7d6
X-Openstack-Request-Id: tx34ced551e2004795893fd-00677ba7d6
root@ms-fe1009:/home/mvernon# swift stat wikipedia-commons-local-thumb.f8 'f/f8/Apostolic_Nunciature_to_China_(2015-).jpg/546px-Apostolic_Nunciature_to_China_(2015-).jpg'
               Account: AUTH_mw
             Container: wikipedia-commons-local-thumb.f8
                Object: f/f8/Apostolic_Nunciature_to_China_(2015-).jpg/546px-Apostolic_Nunciature_to_China_(2015-).jpg
          Content Type: image/jpeg
        Content Length: 144190
         Last Modified: Sun, 21 Apr 2024 22:09:28 GMT
                  ETag: 5f9e329f82e179b73a55f3769d767e3d
   Content-Disposition: inline;filename*=UTF-8''Apostolic_Nunciature_to_China_(2015-).jpg
           X-Timestamp: 1713737367.93561
         Accept-Ranges: bytes
            X-Trans-Id: txd5b252b9bbc44daf84246-00677ba80d
X-Openstack-Request-Id: txd5b252b9bbc44daf84246-00677ba80d

Note also that these thumbs are relatively old, this isn't a transient thumbnailing failure followed by success thing either.

Yeah, I've seen that (I see all the swift-tagged tickets, lucky me), I'll comment there as well.

在T383034#10431764中,@Aklapper写道:

Cannot reproduce from Central Europe; works as expected here.

What's the exact output (except for your IP) if you try to directly access the thumbnail at https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Apostolic_Nunciature_to_China_(2015-).jpg/546px-Apostolic_Nunciature_to_China_(2015-).jpg and https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Apostolic_Nunciature_to_China_%282015-%29.jpg/364px-Apostolic_Nunciature_to_China_%282015-%29.jpg ?

I'm a bit confused why the text on the File page says "Size of this preview: 364 × 600 pixels." but it opens the 546px image instead of the 364px image...

image.png (330×1 px, 19 KB)

For your information. So I think yes, it's similar to T383023, maybe you want to merge this task with it.

And let me update something, I collected some data from others, some people in north america can access it and some people in north america can't, for all the people who replied to me in asia, they can't access it same as me.

A request dump is attached for your information.

image.png (762×1 px, 66 KB)

Thank you for working on it.

Yiming discussed with me, and I just want to say that image can be opened in North America for me

Mentioned in SAL (#wikimedia-operations) [2025-01-06T12:27:29Z] <Emperor> swift post wikipedia-commons-local-thumb.f8 --read-acl 'mw:thumbor,mw:media,.r:*' --write-acl 'mw:thumbor,mw:media' ms-fe2009 per T383034

Update:

I also found that https://upload.wikimedia.org/wikipedia/commons/thumb/e/e8/Zh-wikipedia-200611121821.png/104px-Zh-wikipedia-200611121821.png?20061117060153 does not load normally.

For me, both UK and HK can't load it as normal. For UK, cp3077 will reports "Error: 500, Internal Server Error at Mon, 06 Jan 2025 12:54:06 GMT". And for HK, cp5028 will report "Error: 429, Too Many Requests at Mon, 06 Jan 2025 12:54:20 GMT"

I think this problem is similar to this task, so I report this problem here.

cc @MatthewVernon

@Yiming no, that's a different problem - you're getting throttled because of repeated thumbnail generation failures for that file. Which is because it's not a well-formed image - whilst my browser can display it OK, if I load it into GIMP, it says Error loading PNG file: IDAT: invalid distance too far back and only partially renders it.

MatthewVernon claimed this task.

The presenting issue is fixed, there's a parent task for the underlying issue.