I'm trying to take a screenshot with Python using bpy.ops.screen.screenshot()
However I can't figure out how to chose what file format to save the image as. It will by default be saved as a PNG (see screenshot below). Does anyone know if there would be a way to chose another file format (such as jpeg, bmp etc.) when saving a screenshot through python?
Thanks in advance! :)