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


Groups > comp.lang.python > #4452

Re: PIL Question

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <nirina.raseliarison@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python': 0.07; 'question:': 0.09; 'subject:PIL': 0.09; '>>>': 0.12; 'win32': 0.12; 'received:74.125.82.44': 0.14; 'received:mail- ww0-f44.google.com': 0.14; '"copyright",': 0.16; '"credits"': 0.16; '"license"': 0.16; 'captured': 0.16; 'directory:': 0.16; 'go?': 0.16; 'to:name:python-list@python.org': 0.16; 'subject:Question': 0.16; 'dec': 0.17; 'pil': 0.19; 'header:In- Reply-To:1': 0.22; 'skip:i 40': 0.23; 'skip:[ 10': 0.26; 'seem': 0.30; 'charset:iso-8859-15': 0.31; 'does': 0.31; "can't": 0.31; "skip:' 10": 0.32; 'import': 0.32; 'to:addr:python-list': 0.32; '2008,': 0.33; 'bit': 0.33; 'header:User-Agent:1': 0.35; 'skip:o 20': 0.37; 'received:google.com': 0.38; 'goes': 0.38; 'current': 0.38; 'to:addr:python.org': 0.39; 'where': 0.39; 'header:Received:5': 0.40; 'received:41': 0.70
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:content-type:subject:references:date:to :mime-version:content-transfer-encoding:from:message-id:in-reply-to :user-agent; bh=bkcftRzWmBxgQ4bannFMkV6wwENF4DuzePnPuseIuKU=; b=KIrnqnhIyHVkdU/vKhkYnh796XUilxsSuGdW9oz1eat1UZBHqxdm1G+IR5kXWt5kXR IlVUplani1zA9fXVDGeFmwJeZAu70u0bqLt+r37cFDUlii7KW2PZgt6dn2oCSQvWnT7P YMNUuQ54nRHsXvmiKrpObl3lj6uql3JrBoFWk=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:subject:references:date:to:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; b=cZ70lp/liNbq0oO1Yo492/x3IN+2Yso3K/vRbf9ABnpP37yQ3GFPGci9zBCzPfXcox BAwZqlmG8AN5yKkGtaN0qZPUCf5teU1dLw7mHLGBwK/K9AgSFpqznqWeqN3fgDTGHud/ AN9X19sIJgWAgPGGW4GBLjKLL/JS0E1paqRkY=
Content-Type text/plain; charset=iso-8859-15; format=flowed; delsp=yes
Subject Re: PIL Question
References <b1d97f7b-e9be-431e-8e6c-7b4b2e50e67e@glegroupsg2000goo.googlegroups.com>
Date Mon, 02 May 2011 10:48:54 +0300
To "python-list@python.org" <python-list@python.org>
MIME-Version 1.0
Content-Transfer-Encoding 7bit
From nirinA raseliarison <nirina.raseliarison@gmail.com>
In-Reply-To <b1d97f7b-e9be-431e-8e6c-7b4b2e50e67e@glegroupsg2000goo.googlegroups.com>
User-Agent Opera Mail/11.01 (Win32)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1064.1304322505.9059.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 82.94.164.166
X-Trace 1304322505 news.xs4all.nl 81482 [::ffff:82.94.164.166]:58508
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:4452

Show key headers only | 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