I have to make georeferenced TIF files from some WMS layers. Using built-in Project SaveAsImage makes file, that is too complicated for my fieldwork program Topos. My program can't read rasters with 4 channels and 32 bit, like QGIS makes. I want to use something like

img=QImage(QSize(800,600), QImage.Format_RGB16)

Or any other solution to change raster options. Or any solution to make some plugin for this work.

1 Answer 1


The Save As Image does let you save in other image formats. For example, here's a PNG I just made that way, and its a normal 8 bit colour RGBA image:

preston.png: PNG image data, 981 x 734, 8-bit/color RGBA, non-interlaced

and it comes with its own world file, of course:

$ cat preston.pgw 
  • Anyway my task is to make tif with world file from python console, user script or plugin. Its daily work to prepare fieldwork data and no sense to convert png or any other type later with graphics program. I'm looking for some suitable command. Feb 14, 2017 at 15:59
  • Please edit your question to make it clear you need a TIFF, since the PNG created is a perfectly good "georeferenced raster file" as per your question. Ideally, also supply us with example TIFF files that are and aren't acceptable to your (unnamed) fieldwork program so we can tell if we're near the mark.
    – Spacedman
    Feb 14, 2017 at 16:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.