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$

1 Answer 1

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$ Commented May 11, 2016 at 16:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .