[issue217090] PIL (TkImaging) extension instructions wrong

2022-04-10 Thread admin
Change by admin : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue217090] PIL (TkImaging) extension instructions wrong

2022-04-10 Thread admin
Change by admin : -- github: None -> 33358 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21574] Port image types detections from PIL to the imghdr module

2022-03-13 Thread Irit Katriel
Irit Katriel added the comment: imghdr is deprecated as per PEP 594, so there won't be further enhancements to it. -- nosy: +iritkatriel resolution: -> wont fix stage: test needed -> resolved status: open -> closed ___ Python tracker

Re: Any timeline for PIL for Python 3.4

2020-08-11 Thread Chris Angelico
On Tue, Aug 11, 2020 at 2:41 PM Martin wrote: > > Hi, > > I am running Python 3.4.4, and would like to > use the Python Imaging Library (PIL). This > is currently not available for Python > Version 3. Does anybody know when it will > become available? > > Plan B i

Re: Any timeline for PIL for Python 3.4

2020-08-10 Thread jfong
dn於 2020年8月11日星期二 UTC+8下午1時29分47秒寫道: > On 11/08/2020 16:35, Martin wrote: > > I am running Python 3.4.4, and would like to > > use the Python Imaging Library (PIL).  This > > is currently not available for Python > > Version 3.  Does anybody know when it will > >

Re: Any timeline for PIL for Python 3.4

2020-08-10 Thread dn via Python-list
On 11/08/2020 16:35, Martin wrote: I am running Python 3.4.4, and would like to use the Python Imaging Library (PIL).  This is currently not available for Python Version 3.  Does anybody know when it will become available? Plan B is to install Python 2.7.18.  I just need an idea of how long I

Re: Any timeline for PIL for Python 3.4

2020-08-10 Thread Mike Dewhirst
On 11/08/2020 2:35 pm, Martin wrote: > Hi, > > I am running Python 3.4.4, and would like to > use the Python Imaging Library (PIL).  This > is currently not available for Python > Version 3.  Does anybody know when it will > become available? Try Pillow https://pillow.rea

Any timeline for PIL for Python 3.4

2020-08-10 Thread Martin
Hi, I am running Python 3.4.4, and would like to use the Python Imaging Library (PIL). This is currently not available for Python Version 3. Does anybody know when it will become available? Plan B is to install Python 2.7.18. I just need an idea of how long I would need to wait for Plan

[issue21574] Port image types detections from PIL to the imghdr module

2019-07-29 Thread STINNER Victor
STINNER Victor added the comment: This issue is 5 years old and has patches: it is no newcomer friendly, I remove the "easy" keyword. -- keywords: -easy nosy: +vstinner ___ Python tracker

Re: Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-31 Thread Paul St George
That's what I wanted! But, I didn't know the question because I didn't know the answer. On 30/05/2018 23:09, Karsten Hilbert wrote: On Wed, May 30, 2018 at 11:01:17PM +0200, Peter J. Holzer wrote: On 2018-05-30 22:08:45 +0200, Paul St George wrote: Ha! No, my question was clumsy. If I

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Chris Angelico
On Thu, May 31, 2018 at 9:34 AM, Cameron Simpson wrote: > On 30May2018 21:29, MRAB wrote: >> >> On 2018-05-30 21:01, Paul St George wrote: >>> >>> Is this equivalent? >>> p = subprocess.Popen('display', + imagepath) >>> >> p = subprocess.Popen(['display', imagepath]) >> >>> so >>> >>> p =

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Cameron Simpson
On 30May2018 21:29, MRAB wrote: On 2018-05-30 21:01, Paul St George wrote: Is this equivalent? p = subprocess.Popen('display',  + imagepath) p = subprocess.Popen(['display', imagepath]) so p = subprocess.Popen('display',  'test.png') p = subprocess.Popen(['display', 'test.png'])

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Karsten Hilbert
On Wed, May 30, 2018 at 11:01:17PM +0200, Peter J. Holzer wrote: > On 2018-05-30 22:08:45 +0200, Paul St George wrote: > > Ha! No, my question was clumsy. > > > > If I know the name of the viewer that I want to use (say for example: > > ‘ImageMagick’), where do I find the argument that should be

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Peter J. Holzer
a viewer, it is a collection of programs for manipulating images. The viewer included in the ImageMagick package is simply called 'display' (and it is already the default viewer in PIL, so you don't have to do anything to use it). hp -- _ | Peter J. Holzer| we

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread MRAB
method should I be using and is PIL the best imaging library for my purposes? I do not want to manipulate images, I only want to show images (full screen) on an external display. I want to use Python to control the timing of the images. You probably shouldn't be using PIL at all then. Why open th

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Paul St George
Ha! No, my question was clumsy. If I know the name of the viewer that I want to use (say for example: ‘ImageMagick’), where do I find the argument that should be used in a line of code such as this: ImageShow.register(MyViewer("gwenview"), -1) I want to replace ‘gwenview’ with the name of

Re: Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-30 Thread Paul St George
method is intended for debugging purposes and is useful for that, but what method should I be using and is PIL the best imaging library for my purposes? I do not want to manipulate images, I only want to show images (full screen) on an external display. I want to use Python to control the timing of the

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-29 Thread Ian Kelly
On Sat, May 26, 2018 at 9:17 AM, Paul St George wrote: > Thank you. > You are very right. The show() method is intended for debugging purposes and > is useful for that, but what method should I be using and is PIL the best > imaging library for my purposes? I do not want to manipula

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-29 Thread Steven D'Aprano
On Tue, 29 May 2018 20:02:22 +0200, Paul St George wrote: > Is there, somewhere, a list of viewers and their names (for the purposes > of this script)? Do you mean a list of programs capable of viewing graphics? Do you think there is some sort of central authority that registers the names of

Re: Re: Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-29 Thread Paul St George
wrote: This is very helpful indeed, thank you. Awe-inspiring. It occurred to me that I could edit the PIL/ImageShow.py, replacing ‘xv’ (in five places) with the utility of my choice and using ‘executable’ as the command. Or, is this just not done? No, this tends to become a maintenance problem

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-29 Thread Paul St George
I tried this anyway. The error was:     non-keyword arg after keyword arg On 27/05/2018 21:51, Dennis Lee Bieber wrote: On Sun, 27 May 2018 19:59:41 +0200, Paul St George declaimed the following: So, on Unix I would use Image.show(title=None, nameofdisplayutilty), or

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-29 Thread Paul St George
Thank you. For the advice, and for the new word 'monkeypatch'. On 27/05/2018 23:58, Cameron Simpson wrote: On 27May2018 20:15, Paul St George wrote: This is very helpful indeed, thank you. Awe-inspiring. It occurred to me that I could edit the PIL/ImageShow.py, replacing ‘xv’ (in five

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-29 Thread Paul St George
Should the PIL code be corrected? On 28/05/2018 06:34, Christian Gollwitzer wrote: Am 27.05.18 um 23:58 schrieb Cameron Simpson: On 27May2018 20:15, Paul St George wrote: This is very helpful indeed, thank you. Awe-inspiring. It occurred to me that I could edit the PIL/ImageShow.py

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-29 Thread Peter J. Holzer
On 2018-05-28 06:34:30 +0200, Christian Gollwitzer wrote: > I think this is a bug/misfeature in the PIL code. On all 3 major platforms > there is a way to invoke the standard program for a given file or URL. On > Windows, it is "cmd.exe /c start ...", on OSX it is "

Re: Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-29 Thread Peter Otten
Paul St George wrote: > This is very helpful indeed, thank you. Awe-inspiring. > > It occurred to me that I could edit the PIL/ImageShow.py, replacing ‘xv’ > (in five places) with the utility of my choice and using ‘executable’ as > the command. > > Or, is this just not

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-27 Thread Christian Gollwitzer
Am 27.05.18 um 23:58 schrieb Cameron Simpson: On 27May2018 20:15, Paul St George <em...@paulstgeorge.com> wrote: This is very helpful indeed, thank you. Awe-inspiring. It occurred to me that I could edit the PIL/ImageShow.py, replacing ‘xv’ (in five places) with the utility of my

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-27 Thread Cameron Simpson
On 27May2018 20:15, Paul St George <em...@paulstgeorge.com> wrote: This is very helpful indeed, thank you. Awe-inspiring. It occurred to me that I could edit the PIL/ImageShow.py, replacing ‘xv’ (in five places) with the utility of my choice and using ‘executable’ as the c

Re: Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-27 Thread Paul St George
This is very helpful indeed, thank you. Awe-inspiring. It occurred to me that I could edit the PIL/ImageShow.py, replacing ‘xv’ (in five places) with the utility of my choice and using ‘executable’ as the command. Or, is this just not done? On 26/05/2018 19:11, Peter Otten wrote: Paul St

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-27 Thread Paul St George
So, on Unix I would use Image.show(title=None, nameofdisplayutilty), or Image.show(title=None, scriptname) #where script with name scriptname invokes the program I will try this now! And thank you. On 26/05/2018 19:30, Dennis Lee Bieber wrote: On Sat, 26 May 2018 17:17:42 +0200, Paul St

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-26 Thread Peter Otten
Paul St George wrote: > Thank you. > You are very right. The show() method is intended for debugging purposes > and is useful for that, but what method should I be using and is PIL the > best imaging library for my purposes? I do not want to manipulate > images, I only want to sh

Re: Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-26 Thread Paul St George
Thank you. You are very right. The show() method is intended for debugging purposes and is useful for that, but what method should I be using and is PIL the best imaging library for my purposes? I do not want to manipulate images, I only want to show images (full screen) on an external display

Re: The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-25 Thread boB Stepp
On Fri, May 25, 2018 at 6:04 AM, Paul St George <em...@paulstgeorge.com> wrote: > I am using the Python Imaging Library (PIL), Python 2 and Raspberry Pi 3 B+ > > My code is simply: > > from PIL import Image > > im = Image.open(‘somepic.jpg’) >

The PIL show() method looks for the default viewer. How do I change this to a different viewer (of my choice)?

2018-05-25 Thread Paul St George
I am using the Python Imaging Library (PIL), Python 2 and Raspberry Pi 3 B+ My code is simply:     from PIL import Image     im = Image.open(‘somepic.jpg’)     im.show() # display image But the show() method looks for the default viewer (probably xv). How do I change this (in the code

[issue33310] Update references to PIL-style arrays

2018-04-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks. -- ___ Python tracker ___ ___

[issue33310] Update references to PIL-style arrays

2018-04-18 Thread Stefan Krah
Stefan Krah added the comment: I think I want to leave it as is. Probably no one is using suboffsets anyway. :-) -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue33310] Update references to PIL-style arrays

2018-04-18 Thread Serhiy Storchaka
Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment: Indeed, the name of the top-level package is PIL in Pillow. Unless you want to rewrite the wording or add links I think this issue can be closed. -- ___ Python tracke

[issue33310] Update references to PIL-style arrays

2018-04-18 Thread Stefan Krah
Stefan Krah <ste...@bytereef.org> added the comment: I guess I don't really see much of an issue: The first link for "PIL Python" goes Pillow page and since Pillow is just a fork, the technical term is IMHO "PIL-style". I like to give

[issue33310] Update references to PIL-style arrays

2018-04-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>: The documentation for buffer protocol and memoryview objects contains references to "PIL-style arrays". Since PIL [1] seems dead (it was not ported to Python 3) and superseded by Pillow [2], I think it is

Re: AH01215: ImportError: No module named PIL: - python script unable to recognize PIL when running from apache2 config

2017-03-28 Thread Terry Reedy
On 3/28/2017 11:59 AM, vishnupras...@gmail.com wrote: I capture following error in apache logs. AH01215: from PIL import Image: /var/www/images/index.py AH01215: ImportError: No module named PIL: /var/www/images/index.py A general response to this particular message is a) check spelling

Re: AH01215: ImportError: No module named PIL: - python script unable to recognize PIL when running from apache2 config

2017-03-28 Thread Karim
On 28/03/2017 18:35, Chris Angelico wrote: On Wed, Mar 29, 2017 at 3:32 AM, Karim wrote: On 28/03/2017 18:05, Chris Angelico wrote: On Wed, Mar 29, 2017 at 2:59 AM, wrote: Please help if this wont resolve, I have to completely move away from

Re: AH01215: ImportError: No module named PIL: - python script unable to recognize PIL when running from apache2 config

2017-03-28 Thread Chris Angelico
On Wed, Mar 29, 2017 at 3:32 AM, Karim wrote: > > On 28/03/2017 18:05, Chris Angelico wrote: >> >> On Wed, Mar 29, 2017 at 2:59 AM, wrote: >>> >>> Please help if this wont resolve, I have to completely move away from >>> python. >> >> How about,

Re: AH01215: ImportError: No module named PIL: - python script unable to recognize PIL when running from apache2 config

2017-03-28 Thread Chris Angelico
On Wed, Mar 29, 2017 at 2:59 AM, wrote: > Please help if this wont resolve, I have to completely move away from python. How about, instead, moving away from CGI? Switch to Apache's modpython. I've deployed several Python-based web sites without difficulties. ChrisA --

AH01215: ImportError: No module named PIL: - python script unable to recognize PIL when running from apache2 config

2017-03-28 Thread vishnuprasadh
log" common Options +ExecCGI Allow from all Require all granted ForceType text/html AddHandler cgi-script .py In the index.py am just trying to start the script by trying to import the image. It doenst work i.e. recognize at all. The same import of PIL works from python2/python3 interface in

Re: Address boundary error when trying to use Image.putdata(array) from PIL

2016-09-24 Thread MRAB
On 2016-09-24 11:59, Tristan Trouwen wrote: Got a signal boundary error. Steps to reproduce: open python console Python 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information

Address boundary error when trying to use Image.putdata(array) from PIL

2016-09-24 Thread Tristan Trouwen
Got a signal boundary error. Steps to reproduce: open python console Python 2.7.9 (default, Jun 29 2016, 13:08:31) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from PIL import Image >&

Re: PIL module for 64bit Python 2.7

2015-11-06 Thread Stéphane Wirtel
You can install Pillow, the API is the same. and normally will compile for your architecture. On 6 Nov 2015, at 14:55, Jahn wrote: > Can anyone lat me know where I can download PIL module for 64bit Python 2.7 ? > I found for 32 bit Python 2.7 only and the installation ended with an

PIL module for 64bit Python 2.7

2015-11-06 Thread Jahn
Can anyone lat me know where I can download PIL module for 64bit Python 2.7 ? I found for 32 bit Python 2.7 only and the installation ended with an error that the Python 2.7 was not found in registers. Thank you --- This email has been checked for viruses by Avast antivirus software. https

Re: PIL module for 64bit Python 2.7

2015-11-06 Thread Laura Creighton
In a message of Fri, 06 Nov 2015 20:55:34 +0100, "Jahn" writes: >Can anyone lat me know where I can download PIL module for 64bit Python 2.7 ? > I found for 32 bit Python 2.7 only and the installation ended with an error > that the >Python 2.7 was not found in registers.

Re: PIL module for 64bit Python 2.7

2015-11-06 Thread Stéphane Wirtel
me know where I can download PIL module for 64bit Python 2.7 ? >> I found for 32 bit Python 2.7 only and the installation ended with an >> error that the >> Python 2.7 was not found in registers. >> Thank you > > The Modern Fork of PIL is Pillow. > hhttps://pypi.py

Re: Fwd: PROBLEM IN importing PIL

2015-07-17 Thread Laura Creighton
In a message of Fri, 17 Jul 2015 09:18:46 +0530, rahul tiwari writes: I want to import PIL package but every time this is showing error no PIL module find . plz suggest me how i can fix this problem. Get Pillow. Instructions on how to install it here: https://pillow.readthedocs.org

[issue21574] Port image types detections from PIL to the imghdr module

2015-04-19 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- stage: needs patch - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21574 ___ ___

Re: PIL(LOW) - What am I missing?

2015-03-25 Thread kai . peters
On Wednesday, 25 March 2015 20:54:21 UTC-7, kai.p...@gmail.com wrote: I create an image as per: img = Image.new('1', (1024, 1280), 1) I then draw on it and do: imagedata = list(img.getdata()) print len(imagedata) This gives me 1228800 instead of the expected

PIL(LOW) - What am I missing?

2015-03-25 Thread kai . peters
I create an image as per: img = Image.new('1', (1024, 1280), 1) I then draw on it and do: imagedata = list(img.getdata()) print len(imagedata) This gives me 1228800 instead of the expected 1310720 (1024 * 1280) - any ideas what I am missing? As always, any help much

Re: PIL(LOW) - What am I missing?

2015-03-25 Thread Gary Herron
) - any ideas what I am missing? As always, any help much appreciated. Kai Are you sure? Both Python2 and Python3 give me the expected 1310720, I'm running PILLOW version 2.6.1 on Linux (with both Python 3.4.2 and Python 2.7.8). from PIL import Image img = Image.new('1', (1024, 1280), 1

[issue21574] Port image types detections from PIL to the imghdr module

2015-03-14 Thread Claudiu Popa
Claudiu Popa added the comment: Well, we should have test files for each format imghdr supports. Doesn't PIL have test files for them? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21574

[issue21574] Port image types detections from PIL to the imghdr module

2015-03-10 Thread Andriy Sokolovskiy
Andriy Sokolovskiy added the comment: @Claudiu Popa, IIRC I did not add 1-2 test images because I not found how to make image or how to convert image to this format. So, if there will no chance to add them, should we remove these formats from the patch? --

[issue21574] Port image types detections from PIL to the imghdr module

2015-03-10 Thread Anand B Pillai
Changes by Anand B Pillai abpil...@gmail.com: -- nosy: +pythonhacker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21574 ___ ___ Python-bugs-list

[issue21574] Port image types detections from PIL to the imghdr module

2015-03-09 Thread Claudiu Popa
Claudiu Popa added the comment: In general, the patch looks good, I left a couple of comments on Rietvld. It should be applied to 3.5 only. Also, there are some image test files which aren't included in this patch, could you update it to include them? Thanks. --

Re: PIL installation fails; registration problem

2015-03-01 Thread GerritM
Some more searching brought me to Pillow. That seems to work! No answer needed anymore on previous question. On Saturday, February 28, 2015 at 9:51:53 PM UTC+1, GerritM wrote: I am reinstalling everything on my new Windows 7 laptop. I run into a problem when installing PIL 1.1.7

PIL installation fails; registration problem

2015-02-28 Thread GerritM
I am reinstalling everything on my new Windows 7 laptop. I run into a problem when installing PIL 1.1.7, in combination with my Activestate Python 2.7.8. The PIL installer complains that no Python is registered. I did run Joakim Löw's script to register Python. This results in the message

Re: Installing PIL without internet access

2015-02-26 Thread MRAB
On 2015-02-26 15:23, Larry Martell wrote: I have a host that has no access to the internet and I need to install PIL on it. I have an identical host that is on the internet and I have installed it there (with pip). Is there a way I can copy files from the connected host to a flash drive

Re: Installing PIL without internet access

2015-02-26 Thread Terry Reedy
On 2/26/2015 10:23 AM, Larry Martell wrote: I have a host that has no access to the internet and I need to install PIL on it. I have an identical host that is on the internet and I have installed it there (with pip). Is there a way I can copy files from the connected host to a flash drive

Installing PIL without internet access

2015-02-26 Thread Larry Martell
I have a host that has no access to the internet and I need to install PIL on it. I have an identical host that is on the internet and I have installed it there (with pip). Is there a way I can copy files from the connected host to a flash drive and then copy them to the unconnected host and have

Re: Installing PIL without internet access

2015-02-26 Thread Larry Martell
On Thu, Feb 26, 2015 at 11:57 AM, MRAB pyt...@mrabarnett.plus.com wrote: On 2015-02-26 15:23, Larry Martell wrote: I have a host that has no access to the internet and I need to install PIL on it. I have an identical host that is on the internet and I have installed it there (with pip

Re: How to install PIL or PILLOW on OS X Yosemite?

2015-02-19 Thread Russell Owen
On 2/15/15 8:17 PM, Ned Deily wrote: In article dc937f79-b6bf-4060-8c71-2f4939aef...@googlegroups.com, KP kai.pet...@gmail.com wrote: just upgraded my Mac Mini to Yosemite and have never dabbled in Python on this OS. I see it has Python 2.7.6 installed. When I do something like from PIL

How to install PIL or PILLOW on OS X Yosemite?

2015-02-15 Thread KP
Hi, just upgraded my Mac Mini to Yosemite and have never dabbled in Python on this OS. I see it has Python 2.7.6 installed. When I do something like from PIL import ImageFont, ImageDraw it tells me that it cannot find PIL How do I install this on Yosemite? Any pointers much appreciated KP

Re: How to install PIL or PILLOW on OS X Yosemite?

2015-02-15 Thread Ned Deily
In article dc937f79-b6bf-4060-8c71-2f4939aef...@googlegroups.com, KP kai.pet...@gmail.com wrote: just upgraded my Mac Mini to Yosemite and have never dabbled in Python on this OS. I see it has Python 2.7.6 installed. When I do something like from PIL import ImageFont, ImageDraw

[issue21574] Port image types detections from PIL to the imghdr module

2014-10-02 Thread Andriy Sokolovskiy
Andriy Sokolovskiy added the comment: Hi! Here is first version of patch. What I've done: * Ported 10 new image formats from PIL (tests included) * Improved existing file detections like PIL does. * Add some byte manipulation routines One more thing - I removed `ord()` calls, because python3

[issue21574] Port image types detections from PIL to the imghdr module

2014-10-02 Thread Andriy Sokolovskiy
Changes by Andriy Sokolovskiy sokand...@yandex.ru: Added file: http://bugs.python.org/file36786/issue21574.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21574 ___

[issue21574] Port image types detections from PIL to the imghdr module

2014-10-01 Thread Andriy Sokolovskiy
Andriy Sokolovskiy added the comment: I'll try to do this issue. https://mail.python.org/mailman/private/core-mentorship/2014-October/002766.html -- nosy: +coldmind ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21574

PIL can't read binary

2014-09-23 Thread Frank Liou
I use PIL Image.open() but it show 'list' object has no attribute 'open' this is my code class Image2(): trans = connection.begin() session = Session() ProductId = session.query(ProductEntity.ProductId).filter(ProductEntity.CompanyId==2).all() Image = session.query

Re: PIL can't read binary

2014-09-23 Thread Chris Angelico
On Tue, Sep 23, 2014 at 6:29 PM, Frank Liou fk2654159...@gmail.com wrote: I use PIL Image.open() but it show 'list' object has no attribute 'open' this is my code class Image2(): trans = connection.begin() session = Session() ProductId = session.query

Re: PIL can't read binary

2014-09-23 Thread Ned Batchelder
On 9/23/14 4:29 AM, Frank Liou wrote: I use PIL Image.open() but it show 'list' object has no attribute 'open' this is my code class Image2(): trans = connection.begin() session = Session() ProductId = session.query(ProductEntity.ProductId).filter(ProductEntity.CompanyId==2

[issue21574] Port image types detections from PIL to the imghdr module

2014-07-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Claudiu, are you working on this issue? If not, I'll start writing a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21574 ___

[issue21574] Port image types detections from PIL to the imghdr module

2014-07-25 Thread Claudiu Popa
Claudiu Popa added the comment: No, I didn't start any work on this and right now, with EuroPython, I don't have that much time to start, so feel free to take it and write a patch. -- ___ Python tracker rep...@bugs.python.org

Error while installing PIL

2014-06-04 Thread Sanjay Madhikarmi
Dear sir/madam I have already install python 2.7 64bit in my windows 8 machine but while installing PIL 1.1.7 for python 2.7 it says that Python 2.7 required which was not found in the registry Please help me sort out this problem Thanks in advance -- *Regards, Sanjay Madhikarmi Url

Re: Error while installing PIL

2014-06-04 Thread Mark H Harris
On 6/4/14 10:02 PM, Sanjay Madhikarmi wrote: I have already install python 2.7 64bit in my windows 8 machine but while installing PIL 1.1.7 for python 2.7 it says that Python 2.7 required which was not found in the registry Please help me sort out this problem http://stackoverflow.com

Re: Error while installing PIL

2014-06-04 Thread Mark H Harris
On 6/4/14 10:02 PM, Sanjay Madhikarmi wrote: I have already install python 2.7 64bit in my windows 8 machine but while installing PIL 1.1.7 for python 2.7 it says that Python 2.7 required which was not found in the registry Please help me sort out this problem ... also this one; -- https

Re: Error while installing PIL

2014-06-04 Thread Mark H Harris
On 6/4/14 10:02 PM, Sanjay Madhikarmi wrote: I have already install python 2.7 64bit in my windows 8 machine but while installing PIL 1.1.7 for python 2.7 it says that Python 2.7 required which was not found in the registry ... oops, sorry, also this one: http://stackoverflow.com/questions

[issue21574] Port image types detections from PIL to the imghdr module

2014-05-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It would be good to add support of all image types which are supported in PIL to the imghdr module. -- components: Library (Lib) keywords: easy messages: 219078 nosy: Claudiu.Popa, effbot, serhiy.storchaka priority: normal severity: normal stage

[issue21574] Port image types detections from PIL to the imghdr module

2014-05-25 Thread Claudiu.Popa
Claudiu.Popa added the comment: Sounds good, I'll create a patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21574 ___ ___ Python-bugs-list

Re: PIL Image.fromarray( ... , mode=1 )

2014-02-12 Thread xstgavin124
On Saturday, 31 October 2009 23:43:45 UTC+8, Hans Georg Schaathun wrote: Does anyone know how to save two-tone images represented as numpy arrays? I handle grayscale images by converting to PIL Image objects (mode=L) and then use the PIL save method, but I cannot make this work with mode=1

Update image in same window with, say, PIL

2014-01-04 Thread John O'Hagan
updated, #or to break image = cv.LoadImage(filename) cv.ShowImage(filename, image) cv.WaitKey(1000) I would like to do the same thing using PIL, for two reasons. First, the main project is written in Python 3, but cv is only available in Python 2, so I have

PIL(Pillow) fails with PNG image

2013-12-05 Thread tastyminerals
Hi, I am getting an error when trying to use Pillow library to display image PNG on a Tkinter Button widget. Here is my code. |image= Image.open(os.path.join('icons','bulb.png')) # using PIL for png images self.correctGuessImage= ImageTk.PhotoImage(image) | |File /home/user

Re: PIL(Pillow) fails with PNG image

2013-12-05 Thread Terry Reedy
. |image= Image.open(os.path.join('icons','bulb.png')) # using PIL for png images self.correctGuessImage= ImageTk.PhotoImage(image) | |File /home/user/Documents/temp.py, line222, in drawButtons self.correctGuessImage= ImageTk.PhotoImage(image) File /usr/lib/python2.7

Re: PIL(Pillow) fails with PNG image

2013-12-05 Thread John Gordon
In mailman.3618.1386290317.18130.python-l...@python.org tastyminerals tastyminer...@gmail.com writes: d= Image._getdecoder(self.mode, d, a, self.decoderconfig) AttributeError: 'module' object has no attribute'_getdecoder'||| Do you have your own module named Image.py? -- John

Re: PIL(Pillow) fails with PNG image

2013-12-05 Thread Christian Gollwitzer
Am 05.12.13 21:26, schrieb tastyminerals: Hi, I am getting an error when trying to use Pillow library to display image PNG on a Tkinter Button widget. Here is my code. |image= Image.open(os.path.join('icons','bulb.png')) # using PIL for png images self.correctGuessImage

I need multiples images in one image whit PIL.

2013-11-06 Thread hpuerta
Hi, I need to join multiples images in one image, in client side i don't found the way to do, is possible in server side whit python django, any suggest? -- https://mail.python.org/mailman/listinfo/python-list

Re: I need multiples images in one image whit PIL.

2013-11-06 Thread Roy Smith
manipulation packages which could do this. PIL is sort of the classic, but perhaps not the most convenient to use: http://www.pythonware.com/products/pil/ There are several Python bindings for ImageMagic. I've not used it myself, but heard good things about it: http://www.imagemagick.org/script

[issue18791] PIL freeze reading Jpeg file

2013-08-20 Thread Ezio Melotti
Ezio Melotti added the comment: PIL is not part of the standard library, you should report this on the PIL bug tracker. -- nosy: +ezio.melotti resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep

[issue18791] PIL freeze reading Jpeg file

2013-08-20 Thread lolo27
New submission from lolo27: With this Python program and 20070517-152405_lovers_4 (copie).jpg (this file is ok whith Gimp and others programs). Program freeze ( line print Done is not processing). - from PIL import Image from PIL.ExifTags import

problem loading Python PIL module

2013-06-01 Thread Elliot Perlman
Hi, I have a Python program which worked successfully on several PCs using version 2.2 and showed videos using the PIL module version 1.1.5 . (All the rest works but the videos.) When I try to install the downloaded PIL module on my current laptop PC, I get the error message Could not create

Re: PIL: check if image is animated

2013-05-09 Thread Sven
be a gif that's been renamed to .jpg or something else and is still animated. I thought that this used to work: from PIL import Image def check_animated(img): try: img.seek(1) except (EOFError): return 0 return 1 img = Image('image.jpg') print animated

PIL: check if image is animated

2013-05-06 Thread Sven
Hello, I am trying to check if an image is animated. I can't rely on the extension as it may be a gif that's been renamed to .jpg or something else and is still animated. I thought that this used to work: from PIL import Image def check_animated(img): try: img.seek(1) except

Searching for a replacement for PIL

2013-02-26 Thread Thorsten Kiefer
Hi, my actual program imports ImageTk, to generate TK compatible images. But it seems like PIL is no longer supported. Is there a replacement for draw Images at high rates into TKinter GUIs ? Best regards Thorsten -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching for a replacement for PIL

2013-02-26 Thread Chris Rebert
On Tue, Feb 26, 2013 at 10:17 PM, Thorsten Kiefer thorstenkie...@gmx.de wrote: Hi, my actual program imports ImageTk, to generate TK compatible images. But it seems like PIL is no longer supported. Have you investigated the Pillow fork? https://pypi.python.org/pypi/Pillow/ Cheers, Chris

PIL ImageChops.difference not working correctly(?)

2013-02-18 Thread Jon Reyes
I have two images generated from ImageMagick that I need to compare through PIL but when I compare them it says that the two images aren't identical. I tried viewing the supposed difference but all I see is a black image which means the two image are identical. ImageChops even returns

Re: PIL ImageChops.difference not working correctly(?)

2013-02-18 Thread Jon Reyes
Wow, what the heck, I just learned that using beyond compare if I compare the two images then I'll see a different section under tolerance mode. Anyone an expert on images? The two images have whites on that same image but they're different according to BeyondCompare. What's more, if I do a

Re: PIL or something to open EXIF Metadata with Python

2013-01-10 Thread Pete Forman
Tim Golden m...@timgolden.me.uk writes: On 09/01/2013 14:45, Jose Trevino wrote: I am trying to load the PIL module to manage exif metadata with Python but have had no success. Try pyexiv2: http://tilloy.net/dev/pyexiv2/ TJG Or Hachoir http://pypi.python.org/pypi/hachoir-metadata

PIL or something to open EXIF Metadata with Python

2013-01-09 Thread Jose Trevino
I am trying to load the PIL module to manage exif metadata with Python but have had no success. I do some work relate with applescript, but for large files time increases exponentially. So I changed to Python with the intention of using PIL or something similar. I see that the last update

  1   2   3   4   5   6   7   8   9   10   >