Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #4452

Re: PIL Question

Subject Re: PIL Question
References <b1d97f7b-e9be-431e-8e6c-7b4b2e50e67e@glegroupsg2000goo.googlegroups.com>
Date 2011-05-02 10:48 +0300
From nirinA raseliarison <nirina.raseliarison@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1064.1304322505.9059.python-list@python.org> (permalink)

Show all headers | View raw


[PyNewbie]

> Question: I can't seem to find the captured image, where does it go?

for me, it just goes to the current working directory:

   $ python -i
   Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit  
(Intel)] on win32
   Type "help", "copyright", "credits" or "license" for more information.
   >>> from PIL import ImageGrab
   >>> ImageGrab.grab().save("screen_capture.jpg", "JPEG")
   >>> import os
   >>> os.listdir(os.getcwd())
   ['.appcfg_cookies', '.appcfg_nag', '.bash_history', '.idlerc',  
'.inputrc', '.povray',
   'bootex.log', 'buildBasicDemo.txt', 'glsample.cpp', 'glsample.o',  
'log.txt',
   'screen_capture.jpg', 'test.c']
   >>>

-- 
nirinA

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar


Thread

PIL Question PyNewbie <ryan.morrone@gmail.com> - 2011-05-01 13:50 -0700
  Re: PIL Question Chris Rebert <clp2@rebertia.com> - 2011-05-01 18:00 -0700
  Re: PIL Question Terry Reedy <tjreedy@udel.edu> - 2011-05-01 22:50 -0400
  Re: PIL Question nirinA raseliarison <nirina.raseliarison@gmail.com> - 2011-05-02 10:48 +0300

csiph-web