2
$\begingroup$

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! :)

enter image description here

$\endgroup$
2
$\begingroup$

Currently there is no way, you can only save directly to a PNG.

This is caused by the way the operator works, where the options to choose the image format are only initialized when the file-selector is used.

$\endgroup$
1
  • $\begingroup$ Ah, alright :/ Well, thanks for your answer! $\endgroup$ – Nils Söderman May 11 '16 at 16:44

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.