Save display/canvas as image
I was wondering whether there is a different option than using the print button or an external tool/program to save the stimulus display created in OpenSesame to an image file? I am thinking of something similar to, for instance, pyplots savefig function, so that you can define properties like the format of the picture or maybe even dpi.
I tried what is suggested on psychopy forums:
...but that crashes with:
File "D:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\inline_script.py", line 102, in run
File "D:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\python_workspace.py", line 161, in _exec
File "", line 19, in
File "D:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\window.py", line 798, in getMovieFrame
im = self._getFrame(buffer=buffer)
File "D:\Program Files (x86)\OpenSesame\lib\site-packages\psychopy\visual\window.py", line 820, in _getFrame
im = Image.fromstring(mode='RGBA', size=self.size, data=bufferDat)
File "D:\Program Files (x86)\OpenSesame\lib\site-packages\PIL\Image.py", line 2077, in fromstring
"Please call frombytes() instead.")
Exception: fromstring() has been removed. Please call frombytes() instead.
I assume some critical module is not up-to-date (I was running the script on the psychopy backend)?
Is there maybe another alternative?