In #58 basic support for Wikimedia Commons file thumbnails has been added. However, I have overlooked a bug while testing that first PR, and there are some further improvements which can make the thumbnail support better:
Capital letters in file extensions not yet supported
We still miss support for thumbnails of files with some form of capitalization in the file extension.
All supported file extensions for Wikimedia Commons are listed at https://commons.wikimedia.org/wiki/Special:MediaStatistics - it's important to take into account that variations in upper/lower case can happen in these file extensions. We have many thousands of .JPG files, quite a few .TIF, also a few .Jpg and many other variants.
Other resources to check:
To test an update to the PR, here's an OpenRefine project with a mix of file extensions:
Wikimedia-Commons-files-for-various-tests.openrefine.tar.gz
For now, in this project, I'd expect thumbnails to show up for files that are pretty straightforward 'image based' formats, including tiff files, pdfs, and also videos. Audio files and 3D files (e.g. .stl extension) probably less so.
In #58 basic support for Wikimedia Commons file thumbnails has been added. However, I have overlooked a bug while testing that first PR, and there are some further improvements which can make the thumbnail support better:
Capital letters in file extensions not yet supported
We still miss support for thumbnails of files with some form of capitalization in the file extension.
All supported file extensions for Wikimedia Commons are listed at https://commons.wikimedia.org/wiki/Special:MediaStatistics - it's important to take into account that variations in upper/lower case can happen in these file extensions. We have many thousands of .JPG files, quite a few .TIF, also a few .Jpg and many other variants. Other resources to check:
To test an update to the PR, here's an OpenRefine project with a mix of file extensions: Wikimedia-Commons-files-for-various-tests.openrefine.tar.gz For now, in this project, I'd expect thumbnails to show up for files that are pretty straightforward 'image based' formats, including tiff files, pdfs, and also videos. Audio files and 3D files (e.g. .stl extension) probably less so.
And here's the source for that project; a list of all the varied wonky sorts of file extensions that are around on Wikimedia Commons: https://etherpad.wikimedia.org/p/Various_Commons_files_for_testing
Support for better thumbnails of tiff files
Feedback from User:Nikki via the OpenRefine-Wikimedia Telegram channel: