Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #4428
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <chris@rebertia.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'ide': 0.05; 'paths': 0.07; 'python': 0.07; '>>>>': 0.09; 'question:': 0.09; 'received:209.85.160.174': 0.09; 'received:mail- gy0-f174.google.com': 0.09; 'subject:PIL': 0.09; 'sun,': 0.09; 'pm,': 0.11; 'wrote:': 0.14; '2.6,': 0.16; 'captured': 0.16; 'getcwd': 0.16; 'go?': 0.16; 'idle,': 0.16; 'pil.': 0.16; 'processed.': 0.16; 'shell:': 0.16; 'capture': 0.16; 'subject:Question': 0.16; 'suggest': 0.19; 'pil': 0.19; 'shell': 0.19; 'cc:no real name:2**0': 0.20; 'cc:2**0': 0.20; 'cheers,': 0.20; 'code': 0.22; 'header:In-Reply-To:1': 0.22; 'cc:addr:python- list': 0.22; 'e.g.': 0.22; 'directory.': 0.23; 'skip:i 40': 0.23; 'appears': 0.24; "i'm": 0.26; 'chris': 0.27; 'function': 0.27; 'message-id:@mail.gmail.com': 0.28; 'received:209.85.160': 0.28; 'hi,': 0.29; 'named': 0.30; 'seem': 0.30; 'cc:addr:python.org': 0.31; 'does': 0.31; "can't": 0.31; 'determine': 0.31; 'import': 0.32; 'using': 0.34; 'skip:" 10': 0.34; 'file': 0.35; 'question': 0.35; '2.6': 0.35; 'running': 0.36; 'rather': 0.36; 'folder': 0.36; 'think': 0.36; 'received:209.85': 0.37; 'received:google.com': 0.38; 'code:': 0.38; 'skip:" 20': 0.38; 'current': 0.38; 'where': 0.39; 'received:209': 0.39; 'windows.': 0.40; 'would': 0.40; 'header:Received:5': 0.40; 'simple': 0.60; '2011': 0.62; 'here': 0.65; 'future,': 0.74; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type :content-transfer-encoding; bh=zEfJrHCbVumatJUmJLhsYKSbOV4oV6Kz4bzzWNZJ77E=; b=ThIIGd8EG1go5nzdJndUkE2haO1YMV1PTVeqfqXec4sdFpX0xmZjzU7Ln672VLER+K mNMgInzvybSmLBasrqBR6dvULoXrcrbfT5Uq4Ng4XJeqgdd8UA22S4+5sE1jkLaRxZWJ e4TPsCTuSw7pUXiJrF09SOdd086huuKS4bD30= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type :content-transfer-encoding; b=Z3N56BN8mW9l/0Tzn+3rmCBVoExXK2wmuyrM9ZaWmT3+6JwhZRQROnitq+OnklsZDE Gim2uVSmJ35GsWnKDkuw55rC98nbLnZ+hsCLF58YqVmDjXQdYX15yn01R4DE0oVjTpke 0RZqegyKiS9RQhmyjW2C4Mzi8yprW4aYiidJc= |
| MIME-Version | 1.0 |
| Sender | chris@rebertia.com |
| In-Reply-To | <b1d97f7b-e9be-431e-8e6c-7b4b2e50e67e@glegroupsg2000goo.googlegroups.com> |
| References | <b1d97f7b-e9be-431e-8e6c-7b4b2e50e67e@glegroupsg2000goo.googlegroups.com> |
| Date | Sun, 1 May 2011 18:00:26 -0700 |
| X-Google-Sender-Auth | tokJ6X4FOjdnJ2OXLETdrDoARZ0 |
| Subject | Re: PIL Question |
| From | Chris Rebert <clp2@rebertia.com> |
| Cc | python-list@python.org |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| 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.1050.1304298029.9059.python-list@python.org> (permalink) |
| Lines | 33 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1304298029 news.xs4all.nl 81485 [::ffff:82.94.164.166]:52234 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:4428 |
Show key headers only | View raw
On Sun, May 1, 2011 at 1:50 PM, PyNewbie <ryan.morrone@gmail.com> wrote:
> Hi,
>
> I'm new with Python and PIL. I have a very simple question regarding an image capture function I'm attempting.
>
> Here is the code:
>
>
>>>> from PIL import ImageGrab
>>>> ImageGrab.grab().save("screen_capture.jpg", "JPEG")
>
> Question: I can't seem to find the captured image, where does it go? The python Shell IDE does not display an error, and the code appears to have been processed.
>
> Additional Info: I'm using Python 2.6, and PIL 1.1.7 for Python 2.6 Windows.
I would think to a file named "screen_capture.jpg" in the current
working directory. What that is for IDLE, I don't know. You can
determine what folder that is by running this in your Python shell:
from os import getcwd
print(getcwd())
Also, I would suggest using absolute file paths in the future, rather
than relative ones; e.g. "C:/Documents and Settings/Your
username/Desktop/screen_capture.jpg" rather than just
"screen_capture.jpg".
Cheers,
Chris
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
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