Steps to replicate the issue (include links if applicable):
When uploading TIFFs (like GeoTIFFs) that have grayscale
What happens?:
Commons generates flat white previews, although the pixels have information. This error may lead to deletion requests by unexperienced users.
(see: https://commons.wikimedia.org/wiki/File:DGM1_-_Bayerische_Vermessungsverwaltung_502_5523.tif
or https://commons.wikimedia.org/wiki/File:Vermont_Open_Geospatial_Elevation-2004_320cm_ASPECT.tif vs )
What should have happened instead?:
It should generate previews similar to the appended screenshots shown in QGIS
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Firefox/QGIS



