1

When I capture the screen and save the file it also generates a .pwg file, I do not need it, only the .png

self.iface.mapCanvas().saveAsImage("doc.png")
2

You can remove it:

import os
os.remove("doc.pwg")
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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