Hi, There is a problem with this PDF file: https://commons.wikimedia.org/wiki/File:Guinault_-_Sergent_!_(1881).pdf
Thumbnails don't display, and it says 0.00 Megapixel.
However the file seems to be functional.
Description
Related Objects
- Mentioned In
- T306409: Regression in processing PDFs on Wikimedia Commons: No width, height, no metadata
T333746: After overwriting PDF file, "Failed to initialize OpenSeadragon, no image found" error
T290462: Certain TIFF files get no thumbnail and misidentified dimensions ("0 × 0 pixels") and number of pages (0 pages)
T301291: PDF and Djvu files on Commons failed to be processed (no thumbnails, zero pages) but otherwise valid
T299521: PDF file has 0x0 image size in Commons after uploading a new version while the page number is correct
T298423: DjVu thumbnails not displayed on Wikisource - Mentioned Here
- T301291: PDF and Djvu files on Commons failed to be processed (no thumbnails, zero pages) but otherwise valid
T286273: Image size is not determined for new PNG files with (partially) corrupt metadata
Event Timeline
@Yann: Hi,where does something say 0.00 Megapixel somewhere? Please follow https://www.mediawiki.org/wiki/How_to_report_a_bug and use the bug report form for bug reports (it is linked at the top).
Hello,
I occur the same issue with this PDF : https://commons.wikimedia.org/wiki/File:L%E2%80%99Aclot.pdf, wich has a dimension 0 × 0 on Commons, but recognized correctly (1 237 × 1 750) on wa.wikisource https://wa.wikisource.org/wiki/File:L’Aclot.pdf
The strangest thing is that the version of December 9 at 9:06 pm was displayed with a dimension 0 × 0 (as summarized in the next version at 9:54 pm), but now this version is shown with the real dimension 1 237 × 1 750.
I went through all PDF and Djvu files on Commons and made a list of those which are valid, but are shown as 0x0 without thumbnails, the list is here: T301291
This still happens, see 2nd revision of https://commons.wikimedia.org/wiki/File:Robida_-_La_Guerre_au_vingti%C3%A8me_si%C3%A8cle,_bpt6k3120885.pdf
One more https://commons.wikimedia.org/wiki/File:The_Century_Dictionary_and_Cyclopedia%2C_vol._2_(cu31924091890594).pdf 2nd version
I even got a "crash"
Request from 90.112.34.87 via cp6012 cp6012, Varnish XID 92742326 Error: 503, Backend fetch failed at Tue, 06 Jun 2023 10:59:01 GMT
Further issue is that it crashes this https://commons.wikimedia.org/w/index.php?title=Commons:MyGallery&withJS=MediaWiki:JSONListUploads.js&gUser=Yann
The problem seems to be not only PDF related. This djvu file shows the same effect:
https://commons.wikimedia.org/wiki/File:PL_JI_Kraszewski_Zygzaki.djvu
As a workaround, we uploaded the file directly to Wikisource:
https://pl.wikisource.org/wiki/Plik:PL_JI_Kraszewski_Zygzaki.djvu
It works. But should we stop using Commons?
11:04:05 <@Urbanecm> RhinosF1: wargo: i tired, it did not help. however, manually constructing the URL where the thumbnail is supposed to be (https://upload.wikimedia.org/wikipedia/commons/thumb/archive/8/82/20230929224435%21PL_JI_Kraszewski_Zygzaki.djvu/page1-87px-PL_JI_Kraszewski_Zygzaki.djvu.jpg) appears to have worked
I have the same problem for many my files, for example https://commons.wikimedia.org/wiki/File:%D0%9C%D0%95%D0%92_1883-07.pdf
Removing Wikimedia-maintenance-script-run as there doesn't appear to be an active request to run a maintenance script here after T297942#9668734
It seems there's not much to do here. The linked files seem to have been corrected in the meantime by whatever.
It works for me, both in Commons and in Tamil Wikisource. Maybe, serving proper metadata was just delayed? Or the problem exists in a specific cache server only?

