[SciPy-user] How to save image from a window
Stéfan van der Walt
Thu Apr 17 06:42:08 CDT 2008
On 17/04/2008, Lorenzo Isella <email@example.com> wrote:
> The problem is the following: I want to make a movie using Python tools.
> The short script I paste below (it needs visual python) plots a chain of
> spheres in a window.
> How can I automatically save the window into e.g. a jpeg file?
> I need automation because I aim at generating O(100) jpeg files for my
> I was suggested to use the PIL (python image library) and the ImageGrab
> module, but this seems to be available for Windows only.
> Any suggestion?
You can use the povray plugin (you'll find it via google), which
renders .pov files of every scene. Povray can then be used to convert
each scene to a jpg.
Hope that helps,
More information about the SciPy-user