I'm trying to save the map canvas as an image in Python in QGIS. I've looked in a few places but haven't been able to get something to work. I need a function where I can specify the extent of the map and the image size. Very similar to the "snapshot" command line function that can be used with QGIS. But the problem with the snapshot function is that it has to start QGIS each time and then close it.
Asked
Active
Viewed 821 times
2
-
1Perhaps these posts might help: How to save the Map Canvas as PNG with transparent background programmatically?; and Save Print/Map QGIS composer view as PNG/PDF using Python (without changing anything in visible layout)? – Joseph Aug 15 '16 at 09:29
-
Where did you look, what did you try, what didn't work? – nmtoken Dec 28 '16 at 10:37