Re: PIL module for 64bit Python 2.7

2015-11-06 Thread Stéphane Wirtel
Really strange, I have sent the same answer, there is one hour. Did you receive it ? I am not but maybe I have a problem with my email. On 6 Nov 2015, at 16:37, Laura Creighton wrote: > In a message of Fri, 06 Nov 2015 20:55:34 +0100, "Jahn" writes: >> Can anyone lat me know where I can download

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. >Thank you The Modern

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 error > tha

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 expec

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

2015-03-25 Thread Gary Herron
On 03/25/2015 08:54 PM, kai.pet...@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 1310720 (1024 * 1280) -

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, in combina

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"

Re: PIL can't read binary

2014-09-23 Thread Chris Angelico
On Tue, Sep 23, 2014 at 6:29 PM, 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(

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 mod

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= ImageTk.Ph

Re: PIL(Pillow) fails with PNG image

2013-12-05 Thread John Gordon
In tastyminerals 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 Gordon Imagine what it must be like for a real medical doctor to gor.

Re: PIL(Pillow) fails with PNG image

2013-12-05 Thread Terry Reedy
I cannot answer your question, but wanted to mention that you should send text only and not include an html copy of messages. On 12/5/2013 3:26 PM, tastyminerals wrote: 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.

Re: PIL: check if image is animated

2013-05-09 Thread Sven
Figured out my issue. I did called the check_animated function more than once and the second call causes the exception unless I seek back to 0 On 6 May 2013 21:57, Sven wrote: > 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 be

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 bina

Re: PIL or something to open EXIF Metadata with Python

2013-01-10 Thread Pete Forman
Tim Golden 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 https://bi

Re: PIL or something to open EXIF Metadata with Python

2013-01-09 Thread Tim Golden
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 -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL and requests don't get along

2012-10-24 Thread Roy Smith
In article , Kushal Kumaran wrote: > On 23 Oct 2012 14:06:59 -0400, r...@panix.com (Roy Smith) wrote: > > I have a url from which I can get an image. I want to use PIL to > > manipulate that image. Getting the image is easy: > > > > >>> import requests > > >>> r = requests.get(url) > > > > T

Re: PIL and requests don't get along

2012-10-23 Thread Kushal Kumaran
On 23 Oct 2012 14:06:59 -0400, r...@panix.com (Roy Smith) wrote: > I have a url from which I can get an image. I want to use PIL to > manipulate that image. Getting the image is easy: > > >>> import requests > >>> r = requests.get(url) > > There's a bunch of factory functions for Image, but non

Re: PIL and requests don't get along

2012-10-23 Thread Alex Clark
On 2012-10-23 18:06:59 +, Roy Smith said: I have a url from which I can get an image. I want to use PIL to manipulate that image. Getting the image is easy: import requests r = requests.get(url) There's a bunch of factory functions for Image, but none of them seem to take anything that

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-10-02 Thread Alex Clark
On 2012-10-02 09:26:56 +, WhisperingWally said: Gelonida N gmail.com> writes: I wondered whether some of you have a little more insight into what's going on with PIL. AFAIK the latest PIL stuff lives here: hg.effbot.org Certainly true, though somewhat meaningless in the current cont

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-10-02 Thread WhisperingWally
Gelonida N gmail.com> writes: > I wondered whether some of you have a little more insight into what's > going on with PIL. AFAIK the latest PIL stuff lives here: hg.effbot.org -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-26 Thread alex23
On Sep 27, 7:44 am, Gelonida N wrote: > This is what is confusing me. > if I start with a new python and I just install Pillow, then pillow is > imported via > import PIL > so it does not seem to have a separate name space > > If I had PIL and pillow installed, then I wouldn't even know how to > c

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-26 Thread Gelonida N
On 09/25/2012 02:42 PM, alex23 wrote: On Sep 25, 6:25 pm, Gelonida N wrote: So it seems to be safe to use either Christoph' binary PIL distribution or to use Pillow. The fact, that pillow is accessable via PyPi / easy_install / PIP pushes me slightly towards pillow. I assume it's best to u

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-25 Thread alex23
On Sep 25, 6:25 pm, Gelonida N wrote: > So it seems to be safe to use either Christoph' binary PIL distribution > or to use Pillow. > > The fact, that pillow is accessable via PyPi / easy_install / PIP pushes > me slightly towards pillow. > I assume it's best to uninstall PIL before installing p

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-25 Thread Gelonida N
On 09/25/2012 01:38 AM, alex23 wrote: On Sep 25, 6:04 am, Gelonida N wrote: This all does not sound very comforting. Why is there no fix on the official site? Has a bug been logged about the issue? The Plone community keeps a fairly up-to-date fork called Pillow, we've had a lot of success u

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-24 Thread alex23
On Sep 25, 11:46 am, Alex Clark wrote: > Actually, I started it for the Plone community, but have recently > broadened the scope (since most of the contributions came from outside > Plone). You're a saint, thanks for taking this on. -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-24 Thread alex23
On Sep 25, 6:04 am, Gelonida N wrote: > So I'll probably try to install the custom binary, but would like to > know whether anybody has experience with this > build.http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil Sorry, I missed this the first time. I'm using this version successfully under Window

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-24 Thread Alex Clark
On 2012-09-24 23:38:05 +, alex23 said: On Sep 25, 6:04 am, Gelonida N wrote: This all does not sound very comforting. Why is there no fix on the official site? Has a bug been logged about the issue? The Plone community keeps a fairly up-to-date fork called Pillow, we've had a lot of suc

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-24 Thread cjgohlke
On Monday, September 24, 2012 4:38:05 PM UTC-7, alex23 wrote: > On Sep 25, 6:04 am, Gelonida N wrote: > > > This all does not sound very comforting. Why is there no fix on the > > > official site? > > > > Has a bug been logged about the issue? > See issue #1 at

Re: PIL questions: still supported? Problems on 2.7 for win? alternatives?

2012-09-24 Thread alex23
On Sep 25, 6:04 am, Gelonida N wrote: > This all does not sound very comforting. Why is there no fix on the > official site? Has a bug been logged about the issue? The Plone community keeps a fairly up-to-date fork called Pillow, we've had a lot of success using that locally: http://pypi.python

Re: PIL for the Python 3.2.3

2012-06-15 Thread Alec Taylor
On Fri, Jun 15, 2012 at 10:18 PM, Gonzalo de Soto wrote: > Dear Python Org, > > It wanted to know if already PIL's > version is available for Python 3.2.3. > > ** ** > > Thanks. > >Gonzalo > > > > ** ** > > * * > >

Re: PIL for the Python 3.2.3

2012-06-15 Thread Emile van Sebille
On 6/15/2012 5:18 AM Gonzalo de Soto said... Dear Python Org, It wanted to know if already PIL's version is available for Python 3.2.3. Not yet. See http://www.pythonware.com/products/pil/ Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL for the Python 3.2.3

2012-06-15 Thread Mark Lawrence
On 15/06/2012 13:18, Gonzalo de Soto wrote: Dear Python Org, It wanted to know if already PIL's version is available for Python 3.2.3. Thanks. Gonzalo Please refer to Matthew 7:7 for a way forward. -- Cheers. Mark Lawrence. -- http:/

Re: PIL threading problems

2012-05-30 Thread Christian Heimes
Am 30.05.2012 05:09, schrieb Paul Rubin: > Kind of a long shot, but are there known problems in calling PIL from > multiple threads? I'm getting weird intermittent core dumps from my > app, no idea what's causing them, but PIL is the only C module I'm > using, and I do see some mention on the inte

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Gelonida N
Thanks again to everybody, Your answers helped me to understand better. My pragmatic solution is now to package my program with an open source .ttf font, which will be used on both platforms. On 08/04/2011 10:24 PM, Irmen de Jong wrote: > On 4-8-2011 21:30, Irmen de Jong wrote: > >> As far as

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Irmen de Jong
On 4-8-2011 21:30, Irmen de Jong wrote: > As far as I know, I did not see any difference in output on windows, linux > and mac os x > as long as the code used the same ttf file and PIL versions. (but I'll double > check now > and see if I remember this correctly). To follow up on myself, I've j

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Irmen de Jong
On 4-8-2011 20:54, Gelonida N wrote: > The reason why I want the images to look identical is very simple. > Though the final web server will run on a linux server, I use sometimes > windows for development or as test server. > > For automated tests I would have liked pixel identical images. > th

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Gelonida N
On 08/04/2011 12:32 PM, Thomas Jollans wrote: > On 04/08/11 12:04, Gelonida N wrote: Thanks for your answer. >> >From within a django application >> I'd like create a small image file (e.g. .png) >> which just contains some text. >> >> I wondered what library would be appropriate and would yield t

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Steven D'Aprano
Gelonida N wrote: > I wondered what library would be appropriate and would yield the same > result independent of the OS (assuming the versions of the python > libraries are the same) > Images should be pixel identical independent on the platform on which > the image is created. Short answer: you

Re: PIL question. having exactly same font on multiple platforms

2011-08-04 Thread Thomas Jollans
On 04/08/11 12:04, Gelonida N wrote: > I posted already a question, but perhaps the subject line wasn't clear. > > > Subject line was "Text to image with same results on any platform" > Oh, your original message was perfectly clear, and if I knew the answer, I might have responded. Anyway, int

Re: PIL: The _imaging C module is not installed

2011-05-09 Thread Irmen de Jong
On 9-5-2011 8:22, Nico Grubert wrote: >> I had this happening to me as well someday. >> I recall that first installing it (python setup.py install), and then >> rerunning selftest, solved that error. > > I tried that as well. > Here is the summary of the install process: > > build/temp.linux-x86_

Re: PIL: The _imaging C module is not installed

2011-05-09 Thread Christian Heimes
Am 09.05.2011 08:22, schrieb Nico Grubert: > $ python selftest.py > *** The _imaging C module is not installed It works for me after an inplace installation of the C extensions with "python setup.py build_ext -i". With build_ext -i the C extension is installed inside the source tree so selftest ca

Re: PIL: The _imaging C module is not installed

2011-05-08 Thread Nico Grubert
I had this happening to me as well someday. I recall that first installing it (python setup.py install), and then rerunning selftest, solved that error. I tried that as well. Here is the summary of the install process: build/temp.linux-x86_64-2.4/libImaging/ZipEncode.o -L/usr/local/lib -L/usr/

Re: PIL: The _imaging C module is not installed

2011-05-06 Thread Irmen de Jong
On 06-05-11 15:56, Nico Grubert wrote: However, running the selftest still fails: $ python selftest.py *** The _imaging C module is not installed I had this happening to me as well someday. I recall that first installing it (python setup.py install), and then rerunning selftest, solved that

Re: PIL: The _imaging C module is not installed

2011-05-06 Thread Nico Grubert
> PIL will compile and install if you don't have some development > libraries and then simply not work or not work up to full steam when > used. > > To avoid this, you need to install the appropriate libraries, among > which are: > > libjpeg-devel > freetype-devel > libpng-devel Dear Albert Tha

Re: PIL: The _imaging C module is not installed

2011-05-06 Thread Wojtek Mamrak
@Michel use PIL downloaded from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/ regards 2011/5/6 Christian Heimes : > Am 06.05.2011 01:48, schrieb Michel Claveau - MVP: >> Re! >> >> And why the problem no exist with PIL 1.1.6?  (only 1.1.7) >> Is that the version 1.1.6 does not use these librari

Re: PIL: The _imaging C module is not installed

2011-05-06 Thread Christian Heimes
Am 06.05.2011 01:48, schrieb Michel Claveau - MVP: > Re! > > And why the problem no exist with PIL 1.1.6? (only 1.1.7) > Is that the version 1.1.6 does not use these libraries? PIL 1.1.6 also uses its internal C library to speed things up. For Windows you should use the precompiled packages. ht

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Albert Hopkins
On Fri, 2011-05-06 at 01:45 +0200, Michel Claveau - MVP wrote: > Hi! > > > you need to install the appropriate libraries, among which are: > > libjpeg-devel > > freetype-devel > > libpng-devel > > OK, but where can I find it? I want use PIL with Python under Windows, > and I can't compile C's so

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Michel Claveau - MVP
Re! And why the problem no exist with PIL 1.1.6? (only 1.1.7) Is that the version 1.1.6 does not use these libraries? @+ -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Michel Claveau - MVP
Hi! > you need to install the appropriate libraries, among which are: > libjpeg-devel > freetype-devel > libpng-devel OK, but where can I find it? I want use PIL with Python under Windows, and I can't compile C's sources. Should I replace PIL by ImageMagick? @-salutations -- Michel Claveau -

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Albert Hopkins
Oh I forgot to say, after installing these libraries, you will need to re-compile (install) PIL. -a -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Albert Hopkins
On Thu, 2011-05-05 at 15:35 +0200, Nico Grubert wrote: > Hi there > > I am having trouble to install PIL 1.1.7 on CentOS. > > I read and followed the instructions from > http://effbot.org/zone/pil-imaging-not-installed.htm > > However, I still get the "The _imaging C module is not installed" err

Re: PIL Question

2011-05-02 Thread nirinA raseliarison
[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" fo

Re: PIL Question

2011-05-01 Thread Terry Reedy
On 5/1/2011 9:00 PM, Chris Rebert wrote: I would think to a file named "screen_capture.jpg" in the current working directory. What that is for IDLE, I don't know. At least on windows with 3.2, if one just starts up the shell, it is in the Pythonxy directory. If one runs a file from an edit wi

Re: PIL Question

2011-05-01 Thread Chris Rebert
On Sun, May 1, 2011 at 1:50 PM, PyNewbie 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

Re: PIL Open Problem

2011-02-07 Thread Richard Holmes
On Tue, 08 Feb 2011 10:56:52 +1100, Ben Finney wrote: >Richard Holmes writes: > >> Thanks, Ben. It turns out that I imported both Image and Tkinter and >> Tkinter has an Image class that masked the Image class in the Image >> module. I solved the problem by moving the Image code to a separate >>

Re: PIL Open Problem

2011-02-07 Thread Westley Martínez
On Mon, 2011-02-07 at 15:54 -0800, rantingrick wrote: > On Feb 7, 5:35 pm, Richard Holmes wrote: > > > Thanks, Ben. It turns out that I imported both Image and Tkinter and > > Tkinter has an Image class that masked the Image class in the Image > > module. I solved the problem by moving the Image

Re: PIL Open Problem

2011-02-07 Thread Ben Finney
Richard Holmes writes: > Thanks, Ben. It turns out that I imported both Image and Tkinter and > Tkinter has an Image class that masked the Image class in the Image > module. I solved the problem by moving the Image code to a separate > module This is a classic problem known as “namespace clobber

Re: PIL Open Problem

2011-02-07 Thread rantingrick
On Feb 7, 5:35 pm, Richard Holmes wrote: > Thanks, Ben. It turns out that I imported both Image and Tkinter and > Tkinter has an Image class that masked the Image class in the Image > module. I solved the problem by moving the Image code to a separate > module Yes an another great example of why

Re: PIL Open Problem

2011-02-07 Thread Richard Holmes
On Tue, 08 Feb 2011 09:47:32 +1100, Ben Finney wrote: >Richard Holmes writes: > >> I'm trying to create an image for use in Tkinter. If I understand the >> PIL documentation correctly, I first need to import Image, then >> create an instance of the Image class and call 'open' (this according >>

Re: PIL Open Problem

2011-02-07 Thread Ben Finney
Richard Holmes writes: > On Mon, 07 Feb 2011 17:28:45 -0500, Corey Richardson > wrote: > >This is good: > > > >import Image > >im = Image.open(foo) > Uh, thanks, Corey, but that's what I'm doing. See Traceback: Without code, we can't see what you're doing. Please post a minimal working example

Re: PIL Open Problem

2011-02-07 Thread Richard Holmes
On Mon, 07 Feb 2011 17:28:45 -0500, Corey Richardson wrote: >On 02/07/2011 05:27 PM, Richard Holmes wrote: >> I'm trying to create an image for use in Tkinter. If I understand the >> PIL documentation correctly, I first need to import Image, then >> create an instance of the Image class and call

Re: PIL Open Problem

2011-02-07 Thread Ben Finney
Richard Holmes writes: > I'm trying to create an image for use in Tkinter. If I understand the > PIL documentation correctly, I first need to import Image, then > create an instance of the Image class and call 'open' (this according > to the documentation). When I try to do this using the model i

Re: PIL Open Problem

2011-02-07 Thread Corey Richardson
On 02/07/2011 05:27 PM, Richard Holmes wrote: > I'm trying to create an image for use in Tkinter. If I understand the > PIL documentation correctly, I first need to import Image, then > create an instance of the Image class and call 'open' Don't do that. This is wrong: import Image im = Image.Ima

Re: PIL how to enlarge image

2010-12-04 Thread Tim Roberts
robos85 wrote: > >Hi, I try to enlarge original image. >I have image in size: 100x100 and I want to make it 120x120. >But resize() doesn't make it bigger. Is there any method for that? "resize" does not change the image. Instead, it returns the resized image. If you don't need the original any m

Re: PIL how to enlarge image

2010-12-04 Thread Alain Ketterlin
robos85 writes: > Hi, I try to enlarge original image. > I have image in size: 100x100 and I want to make it 120x120. > But resize() doesn't make it bigger. Is there any method for that? You have to use i.transform() -- Alain. -- http://mail.python.org/mailman/listinfo/python-list

Re: pil and reportlab: image compression

2010-08-27 Thread steph
On 26 Aug., 13:16, steph wrote: > Hi group, > > I've written a small application that puts images into a pdf document. > It works ok, but my problem is that the pdf-files become quite huge, > bigger than the original jpegs. The problem seems to arise because I > use PIL to resize the pictures - an

Re: PIL

2010-08-03 Thread GrayShark
As we seem to be at an impasse with respect to PIL and xpm, I know gimp does support saving as xpm and that gimp has a python language console. Perhaps parvini_na...@yahoo.com, could look to the gimp mailing list for help? Steven On Tue, 03 Aug 2010 01:56:20 -0700, Chris Rebert wrote: > On T

Re: PIL

2010-08-03 Thread Chris Rebert
On Tue, Aug 3, 2010 at 1:45 AM, Navid Parvini wrote: > Dear All, > > I want to convert a .png file to .xpm using PIL. I used the following command: > Image.open( "t1.png").save("a1.xpm"). But it doesn't work and I could not > convert it. > > Would you please help me and let me know that how can I

Re: PIL

2010-08-03 Thread Matteo Landi
I don't think yours is a permitted conversion[1]. It seems that PIL supports xpm format only for reading, but I could be wrong. Regards. [1] http://www.daniweb.com/forums/thread260074.html On Tue, Aug 3, 2010 at 10:45 AM, Navid Parvini wrote: > Dear All, > > I want to convert a .png file to .x

Re: PIL

2010-08-03 Thread James Mills
On Tue, Aug 3, 2010 at 6:45 PM, Navid Parvini wrote: > I want to convert a .png file to .xpm using PIL. I used the following > command: > Image.open( "t1.png").save("a1.xpm"). But it doesn't work and I could not > convert it. > > Would you please help me and let me know that how can I convert/save

Re: PIL question

2010-04-06 Thread Lie Ryan
On 04/06/10 19:47, Peter Otten wrote: > Tim Eichholz wrote: > >> I think maybe I am using the wrong function. I want to paste the >> entire 192x192 contents of cols[f] into newimage. I would think it >> works like newimage.paste(cols[f], (x, 0, 192+x, 192)) if that's not >> it I think I'm missing

Re: PIL question

2010-04-06 Thread Peter Otten
Tim Eichholz wrote: > I think maybe I am using the wrong function. I want to paste the > entire 192x192 contents of cols[f] into newimage. I would think it > works like newimage.paste(cols[f], (x, 0, 192+x, 192)) if that's not > it I think I'm missing a function Don't "think"! Read the documentat

Re: PIL question

2010-04-06 Thread Tim Eichholz
On Apr 6, 3:05 am, Peter Otten <__pete...@web.de> wrote: > Tim Eichholz wrote: > > I'm trying to cut a BMP with 80 adjacent frames down to 40 using the > > Image.copy and .paste functions but I'm getting error "ValueError: > > images do not match" on the paste line. > > newimage.paste(cols[f], (f*f

Re: PIL question

2010-04-06 Thread Peter Otten
Tim Eichholz wrote: > I'm trying to cut a BMP with 80 adjacent frames down to 40 using the > Image.copy and .paste functions but I'm getting error "ValueError: > images do not match" on the paste line. > newimage.paste(cols[f], (f*framew, 0, (f*framew)+192, 192)) The 4-tuple doesn't match the si

Re: PIL how to display multiple images side by side

2010-01-11 Thread Alf P. Steinbach
* suresh.amritapuri: On Jan 9, 9:51 pm, "Alf P. Steinbach" wrote: * Lie Ryan: On 1/9/2010 8:43 AM, suresh.amritapuri wrote: Hi, In PIL, how to display multiple images in say m rows and n colums when I have m*n images. suresh Tkinter has PhotoImage widget and PIL has support for this widget:

Re: PIL how to display multiple images side by side

2010-01-11 Thread suresh.amritapuri
On Jan 9, 9:51 pm, "Alf P. Steinbach" wrote: > * Lie Ryan: > > > On 1/9/2010 8:43 AM, suresh.amritapuri wrote: > >> Hi, > > >> In PIL, how to display multiple images in say m rows and n colums when > >> I have m*n images. > > >> suresh > > > Tkinter has PhotoImage widget and PIL has support for th

Re: PIL how to display multiple images side by side

2010-01-09 Thread Alf P. Steinbach
* Lie Ryan: On 1/9/2010 8:43 AM, suresh.amritapuri wrote: Hi, In PIL, how to display multiple images in say m rows and n colums when I have m*n images. suresh Tkinter has PhotoImage widget and PIL has support for this widget: http://www.pythonware.com/library/pil/handbook/imagetk.htm Maybe

Re: PIL how to display multiple images side by side

2010-01-09 Thread Lie Ryan
On 1/9/2010 8:43 AM, suresh.amritapuri wrote: Hi, In PIL, how to display multiple images in say m rows and n colums when I have m*n images. suresh Tkinter has PhotoImage widget and PIL has support for this widget: http://www.pythonware.com/library/pil/handbook/imagetk.htm -- http://mail.pyt

Re: PIL show() not working for 2nd pic

2010-01-09 Thread Cousin Stanley
> I am using PIL for image processing in ubuntu 9.04. When i give two > im.show() commands for two different images, the second image is not > displayed (eye of gnome is the display program). It says no such file > or directory. Any ideas? Suresh I also had problems with show() whe

Re: PIL how to display multiple images side by side

2010-01-08 Thread Sean DiZazzo
On Jan 8, 1:43 pm, "suresh.amritapuri" wrote: > Hi, > > In PIL, how to display multiple images in say m rows and n colums when > I have m*n images. > > suresh Sounds like a good project to learn PIL with. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL show() not working for 2nd pic

2010-01-08 Thread suresh.amritapuri
On Jan 8, 6:32 am, McColgst wrote: > Do you get any errors or warnings? > Could we see the code you ran to get this problem? > > Thanks > Sean I used to get no such file or directory showing some files in /tmp directory. But today I am getting a different type of message, which appeared yesterday

Re: PIL show() not working for 2nd pic

2010-01-08 Thread McColgst
Do you get any errors or warnings? Could we see the code you ran to get this problem? Thanks Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL: problem to convert an image array to PIL format

2009-12-17 Thread Sverre
On 17 Des, 15:45, Peter Otten <__pete...@web.de> wrote: > > This has come up before, see > > http://mail.python.org/pipermail/python-list/2009-October/1221578.html > > Peter Thank you! -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL: problem to convert an image array to PIL format

2009-12-17 Thread Peter Otten
Sverre wrote: > After converting a PIL image in memory to an array with numpy.asarray > (), I make a adthreshold() with pymorph() with the result, that all > pixels in the array are either false or true (boolean). But my try to > convert this back into PIL format is failing > > img = Image.fromar

Re: PIL: problem to convert an image array to PIL format

2009-12-17 Thread Robert Franke
Hi, On Thu, Dec 17, 2009 at 1:14 PM, Sverre wrote: > After converting a PIL image in memory to an array with numpy.asarray > (), I make a adthreshold() with pymorph() with the result, that all > pixels in the array are either false or true (boolean). But my try to > convert this back into PIL fo

Re: PIL build error on Snow Leopard

2009-12-01 Thread Ned Deily
In article <785f1942-6aec-4a5a-934a-8db50648b...@e22g2000vbm.googlegroups.com>, Xiao wrote: > I haven't fully understood the nuances in the difference between > Apple's system Python and MacPython. But I have just installed Python > 2.6.4 from python.org. Now I'm trying to install a fresh downlo

Re: PIL : How to write array to image ???

2009-10-06 Thread Scott David Daniels
Mart. wrote: On Oct 5, 5:14 pm, Martin wrote: On Oct 4, 10:16 pm, "Mart." wrote: On Oct 4, 9:47 am, Martin wrote: On Oct 3, 11:56 pm, Peter Otten <__pete...@web.de> wrote: Martin wrote: Dear group I'm trying to use PIL to write an array (a NumPy array to be exact) to an image. Peace

Re: PIL : How to write array to image ???

2009-10-05 Thread Mart.
On Oct 5, 5:14 pm, Martin wrote: > On Oct 4, 10:16 pm, "Mart." wrote: > > > > > > > On Oct 4, 9:47 am, Martin wrote: > > > > On Oct 3, 11:56 pm, Peter Otten <__pete...@web.de> wrote: > > > > > Martin wrote: > > > > > Dear group > > > > > > I'm trying to use PIL to write an array (a NumPy array t

Re: PIL : How to write array to image ???

2009-10-05 Thread Martin
On Oct 4, 10:16 pm, "Mart." wrote: > On Oct 4, 9:47 am, Martin wrote: > > > > > On Oct 3, 11:56 pm, Peter Otten <__pete...@web.de> wrote: > > > > Martin wrote: > > > > Dear group > > > > > I'm trying to use PIL to write an array (a NumPy array to be exact) to > > > > an image. > > > > Peace of ca

Re: PIL : How to write array to image ???

2009-10-04 Thread Mart.
On Oct 4, 9:47 am, Martin wrote: > On Oct 3, 11:56 pm, Peter Otten <__pete...@web.de> wrote: > > > > > > > Martin wrote: > > > Dear group > > > > I'm trying to use PIL to write an array (a NumPy array to be exact) to > > > an image. > > > Peace of cake, but it comes out looking strange. > > > > I

Re: PIL : How to write array to image ???

2009-10-04 Thread Martin
On Oct 3, 11:56 pm, Peter Otten <__pete...@web.de> wrote: > Martin wrote: > > Dear group > > > I'm trying to use PIL to write an array (a NumPy array to be exact) to > > an image. > > Peace of cake, but it comes out looking strange. > > > I use the below mini code, that I wrote for the purpose. The

Re: PIL : How to write array to image ???

2009-10-03 Thread Peter Otten
Martin wrote: > Dear group > > I'm trying to use PIL to write an array (a NumPy array to be exact) to > an image. > Peace of cake, but it comes out looking strange. > > I use the below mini code, that I wrote for the purpose. The print of > a looks like expected: > > [[ 200. 200. 200. ...,

Re: PIL : How to write array to image ???

2009-10-03 Thread Robert Kern
Martin wrote: Dear group I'm trying to use PIL to write an array (a NumPy array to be exact) to an image. Peace of cake, but it comes out looking strange. I use the below mini code, that I wrote for the purpose. The print of a looks like expected: [[ 200. 200. 200. ...,0.0.0.] [

Re: PIL and Python

2009-08-22 Thread catafest
If I make it work, i will send the solution. Thank you ! -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL and Python

2009-08-21 Thread Michele Petrazzo
catafest wrote: > I don't extract data from jpegs. I wanna put some data in this > (copyright of my site) ... > My wrap for freeimage, called freeimagepy :) can't, as now, wrote exif information on the image, but since freeimage can do it, I think that it's not so difficult to add this type of fe

Re: PIL and Python

2009-08-21 Thread catafest
I don't extract data from jpegs. I wanna put some data in this (copyright of my site) ... On Aug 20, 2:01 pm, MaxTheMouse wrote: > On Aug 20, 10:23 am, catafest wrote: > > > On my photo jpg i have this : > > > Image Type: jpeg (The JPEG image format) > > Width: 1224 pixels > > Height: 1632 pixel

Re: PIL and Python

2009-08-20 Thread MaxTheMouse
On Aug 20, 10:23 am, catafest wrote: > On my photo jpg i have this : > > Image Type: jpeg (The JPEG image format) > Width: 1224 pixels > Height: 1632 pixels > Camera Brand: Sony Ericsson > Camera Model: W810i > Date Taken: 2009:07:09 08:16:21 > Exposure Time: 1/19 sec. > ISO Speed Rating: 320 > Fl

Re: PIL and Python

2009-08-20 Thread catafest
On my photo jpg i have this : Image Type: jpeg (The JPEG image format) Width: 1224 pixels Height: 1632 pixels Camera Brand: Sony Ericsson Camera Model: W810i Date Taken: 2009:07:09 08:16:21 Exposure Time: 1/19 sec. ISO Speed Rating: 320 Flash Fired: Flash did not fire, compulsory flash mode. Mete

Re: PIL and Python

2009-08-13 Thread Nobody
On Thu, 13 Aug 2009 16:38:07 -0700, Martin wrote: >> I want use python to change the "note" from .jpeg files . >> What is the functions on PIL how make this ? > > What do u mean by the note? I think he means the EXIF data. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   >