Revision: 4469
Author: robotframework
Date: Thu Dec  9 03:01:29 2010
Log: force jpeg with also with pil
http://code.google.com/p/robotframework/source/detail?r=4469

Modified:
 /trunk/src/robot/libraries/Screenshot.py

=======================================
--- /trunk/src/robot/libraries/Screenshot.py    Thu Dec  9 01:44:51 2010
+++ /trunk/src/robot/libraries/Screenshot.py    Thu Dec  9 03:01:29 2010
@@ -262,7 +262,7 @@
         pb.save(path, 'jpeg')

     def _pil_screenshot(self, path):
-        ImageGrab.grab().save(path)
+        ImageGrab.grab().save(path, 'JPEG')

     def _no_screenshot(self, path):
raise RuntimeError('Taking screenshots is not supported on this platform '

Reply via email to