Pil image module, mode bug..

2007-10-07 Thread Abandoned
Hi.. I find the picture color with: im=Image.open(/%s %name) color=im.mode #p=black beyaz rgb=color L=grey This usually work true but in these pictures: http://malatya.meb.gov.tr/images/alt/ilsis_logo.gif http://malatya.meb.gov.tr/images/meb.gif Say me P (blackwhite) but these pictures are

Re: Pil image module, mode bug..

2007-10-07 Thread Michal Bozon
On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: Hi.. I find the picture color with: im=Image.open(/%s %name) color=im.mode #p=black beyaz rgb=color L=grey This usually work true but in these pictures: http://malatya.meb.gov.tr/images/alt/ilsis_logo.gif

Re: Pil image module, mode bug..

2007-10-07 Thread Abandoned
On Oct 7, 4:47 pm, Michal Bozon [EMAIL PROTECTED] wrote: On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: Hi.. I find the picture color with: im=Image.open(/%s %name) color=im.mode #p=black beyaz rgb=color L=grey This usually work true but in these pictures:

Re: Pil image module, mode bug..

2007-10-07 Thread Michal Bozon
On Sun, 07 Oct 2007 09:02:09 -0700, Abandoned wrote: On Oct 7, 4:47 pm, Michal Bozon [EMAIL PROTECTED] wrote: On Sun, 07 Oct 2007 06:03:06 -0700, Abandoned wrote: Hi.. I find the picture color with: im=Image.open(/%s %name) color=im.mode #p=black beyaz rgb=color L=grey This

Using ImageGrab (PIL) to capture screen of remote computer

2007-10-02 Thread jorma kala
Hi, Is it possible to use ImageGrab of the Python Imaging Library to capture the screen of a remote computer? I'm running my python program on a computer that is connected directly via a ethernet crossover cable to another computer. Can I somehow get ImageGrab to grab the display of the remote

Re: Using ImageGrab (PIL) to capture screen of remote computer

2007-10-02 Thread Michael Bentley
On Oct 2, 2007, at 2:33 AM, jorma kala wrote: Is it possible to use ImageGrab of the Python Imaging Library to capture the screen of a remote computer? I'm running my python program on a computer that is connected directly via a ethernet crossover cable to another computer. Can I somehow

Re: Emailing the attachment created with the Quick Screenshots Script(Python + PIL)

2007-09-28 Thread Mark Bratcher
]) Spring 2005 To run this you'll need: Python Imaging Library (PIL) -http://www.pythonware.com/products/pil/ Python 2.3 or later - http://www.python.org Windows? import os import sys import time import Image import ImageGrab

Re: Emailing the attachment created with the Quick Screenshots Script(Python + PIL)

2007-09-28 Thread Simon Brunning
On 9/28/07, Mark Bratcher [EMAIL PROTECTED] wrote: I tried the suggestion at the other end of this link without any luck. Does anyone have a working script which will send the screenshot file created by the Quick Screenshots Script (Python + PIL)? I receive errors like access denied errors

Re: Emailing the attachment created with the Quick Screenshots Script(Python + PIL)

2007-09-28 Thread Mark Bratcher
I tried the suggestion at the other end of this link without any luck. Does anyone have a working script which will send the screenshot file created by the Quick Screenshots Script (Python + PIL)? I receive errors like access denied errors and not defined errors. See the second example from

Re: Emailing the attachment created with the Quick Screenshots Script(Python + PIL)

2007-09-28 Thread Gabriel Genellina
En Fri, 28 Sep 2007 12:56:18 -0300, Mark Bratcher [EMAIL PROTECTED] escribi�: The quick screenshots script works great for the project I'm working on and I'm trying to modify it to include emailing the JPG file it generates. I retrieved both scripts from the Python Archives. The

Emailing the attachment created with the Quick Screenshots Script (Python + PIL)

2007-09-27 Thread Mark Bratcher
The Quick Screenshots Script (Python + PIL) is a dream come true, and yet so simple to use reliably. Does anyone have a suggestion or know how to include in the script, the ability to email the attachment? This would make the dream perfect! Thanks! Mark Bratcher Consolidated Citrus, LP

Re: Emailing the attachment created with the Quick Screenshots Script (Python + PIL)

2007-09-27 Thread Gabriel Genellina
En Thu, 27 Sep 2007 10:37:05 -0300, Mark Bratcher [EMAIL PROTECTED] escribi�: The Quick Screenshots Script (Python + PIL) is a dream come true, and yet so simple to use reliably. Does anyone have a suggestion or know how to include in the script, the ability to email the attachment

PIL GIF transparency

2007-09-24 Thread David
Hello alll, Apologies if this isn't the correct list. I'm getting my feet wet with the Python Imaging Library (PIL) 1.1.6 on Python 2.5.1. I have played around quite a bit with transparent GIFs, and from what I can tell, PIL should support what I want to do - except I can't seem to get

Re: PIL GIF transparency

2007-09-24 Thread Gabriel Genellina
En Mon, 24 Sep 2007 21:53:46 -0300, David [EMAIL PROTECTED] escribi�: I have a large number of smallish icons (GIFs with transparency) that I'd like to tile into a grid in one large GIF image. The background color of the image should be GIF-transparent. Currently, I can set it to be white

PIL DPI trouble

2007-09-13 Thread Gary Bloom
Howdy! I notice that the PIL has trouble playing with the DPI of other programs and image standards: when I create a file with Paint Shop Pro or Photoshop, the PIL routines can't properly recognize the DPI. And when I create an image file (via the save method) of PIL, setting the DPI, those

Re: PIL DPI trouble

2007-09-13 Thread Gabriel Genellina
En Thu, 13 Sep 2007 23:50:39 -0300, Gary Bloom [EMAIL PROTECTED] escribi�: I notice that the PIL has trouble playing with the DPI of other programs and image standards: when I create a file with Paint Shop Pro or Photoshop, the PIL routines can't properly recognize the DPI. Do you mean

PIL Error: cannot read interlaced PNG files

2007-09-10 Thread T-u-N-i-X
Hey There, I'm developing an application that lets the user to upload JPG and PNG files. I'm using PIL to check the images after the upload (like checking it storage size, width and height). But PIL raises an error: cannot read interlaced PNG files It says that interlaced PNG files

Re: PIL Error: cannot read interlaced PNG files

2007-09-10 Thread Steve Holden
T-u-N-i-X wrote: Hey There, I'm developing an application that lets the user to upload JPG and PNG files. I'm using PIL to check the images after the upload (like checking it storage size, width and height). But PIL raises an error: cannot read interlaced PNG files It says

HDR and PIL

2007-09-09 Thread bpowah
I've put together a method (and a script) for rendering (tone mapping) an arbitrary number of exposures into an HDR-style image. I really like the results I'm getting and feel like others could benefit from it. I've put together a small write-up here (with the code):

Re: PIL cutting off letters

2007-07-16 Thread nosp
test -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL cutting off letters

2007-06-19 Thread peter
On 16 Jun, 17:20, Pierre Hanser [EMAIL PROTECTED] wrote: Matt Haggard a écrit : I'm using PIL (Python Imaging Library) to generate button images. They consist of a left end image, a middle, repeating image and a right side image anyway, that's not important I'm using a TTF font

Re: PIL cutting off letters

2007-06-19 Thread Mitja Trampus
Matt Haggard wrote: I'm using PIL (Python Imaging Library) to generate button images. They consist of a left end image, a middle, repeating image and a right side image anyway, that's not important I'm using a TTF font for the text of the button (Verdana.TTF) and it keeps cutting

Re: PIL cutting off letters

2007-06-16 Thread Pierre Hanser
Matt Haggard a écrit : I'm using PIL (Python Imaging Library) to generate button images. They consist of a left end image, a middle, repeating image and a right side image anyway, that's not important I'm using a TTF font for the text of the button (Verdana.TTF) and it keeps cutting

PIL cutting off letters

2007-06-15 Thread Matt Haggard
I'm using PIL (Python Imaging Library) to generate button images. They consist of a left end image, a middle, repeating image and a right side image anyway, that's not important I'm using a TTF font for the text of the button (Verdana.TTF) and it keeps cutting the bottom part of the the g's

Re: Using PIL to find separator pages

2007-06-02 Thread Steve Holden
scanned the people that did the scanning put a colored (hot pink) separator page between the individual documents. I was wondering if there was any way to utilize PIL to scan through the individual files, look at some small section on the page, and determine if it is a separator page by somehow

Re: Using PIL to find separator pages

2007-06-02 Thread Steve Holden
Steve Holden wrote: Larry Bates wrote: [...] I think I've come up with something that will work. I use PIL Image.getcolors() to get colors and take the top 10 colors of my background page. I then calculate the average of the R, G, B components. That becomes my reference. Then I read

Re: Using PIL to find separator pages

2007-06-01 Thread Larry Bates
) separator page between the individual documents. I was wondering if there was any way to utilize PIL to scan through the individual files, look at some small section on the page, and determine if it is a separator page by somehow comparing the color to the separator page color? I realize

Re: Using PIL to find separator pages

2007-06-01 Thread Steve Holden
a colored (hot pink) separator page between the individual documents. I was wondering if there was any way to utilize PIL to scan through the individual files, look at some small section on the page, and determine if it is a separator page by somehow comparing the color to the separator page

Re: Resize image NO PIL!!

2007-06-01 Thread cbmeeks
that monitored the MySQLdb every 10 seconds (just for testing) and it would process thumb_jobs by calling PIL. Worked nicely. I will have to experiment with tight batch control (as in, not processing the same pic more than once) and threading. cbmeeks http://www.signaldev.com On May 30, 5:50 pm, [EMAIL

Re: Using PIL to find separator pages

2007-06-01 Thread Larry Bates
that did the scanning put a colored (hot pink) separator page between the individual documents. I was wondering if there was any way to utilize PIL to scan through the individual files, look at some small section on the page, and determine if it is a separator page by somehow comparing the color

Using PIL to find separator pages

2007-05-31 Thread Larry Bates
documents. I was wondering if there was any way to utilize PIL to scan through the individual files, look at some small section on the page, and determine if it is a separator page by somehow comparing the color to the separator page color? I realize that this would be some sort of percentage match

Re: Using PIL to find separator pages

2007-05-31 Thread Steve Holden
between the individual documents. I was wondering if there was any way to utilize PIL to scan through the individual files, look at some small section on the page, and determine if it is a separator page by somehow comparing the color to the separator page color? I realize that this would

Re: Using PIL to find separator pages

2007-05-31 Thread half . italian
a colored (hot pink) separator page between the individual documents. I was wondering if there was any way to utilize PIL to scan through the individual files, look at some small section on the page, and determine if it is a separator page by somehow comparing the color to the separator page

Re: Resize image NO PIL!!

2007-05-30 Thread Aahz
In article [EMAIL PROTECTED], cbmeeks [EMAIL PROTECTED] wrote: My stupid host (pair.com) doesn't have PIL installed and I'm too much of a stupid newbie to figure out how to get it to work with them (access denied while installing it, of course). Also, they don't have any python interface setup

Re: Resize image NO PIL!!

2007-05-29 Thread cbmeeks
stupid host (pair.com) doesn't have PIL installed and I'm too much of a stupid newbie to figure out how to get it to work with them (access denied while installing it, of course). Also, they don't have any python interface setup for GD. Anyway, I don't know what my options are. I'm thinking

Re: Resize image NO PIL!!

2007-05-29 Thread Daniel Nogradi
I have created an image hosting site and when a user uploads an image, I want a service to run on the server to create a few thumbnails while the user does other things. My stupid host (pair.com) doesn't have PIL installed and I'm too much of a stupid newbie to figure out how to get

Resize image NO PIL!!

2007-05-28 Thread cbmeeks
I have created an image hosting site and when a user uploads an image, I want a service to run on the server to create a few thumbnails while the user does other things. My stupid host (pair.com) doesn't have PIL installed and I'm too much of a stupid newbie to figure out how to get it to work

Re: Resize image NO PIL!!

2007-05-28 Thread Dave Benjamin
cbmeeks wrote: I have created an image hosting site and when a user uploads an image, I want a service to run on the server to create a few thumbnails while the user does other things. My stupid host (pair.com) doesn't have PIL installed and I'm too much of a stupid newbie to figure out how

Re: How to get a dot's or pixel's RGB with PIL

2007-05-27 Thread Michael Bentley
On May 26, 2007, at 11:29 PM, [EMAIL PROTECTED] wrote: e.g. rtfm = (100,100) im.getpixel(rtfm) -- http://mail.python.org/mailman/listinfo/python-list

Re: Color Segmentation w/ PIL?

2007-05-27 Thread way4thesub
and do color image segmentation. Maybe some of the code can I apply to your project and you can bridge the gap using Jython. Adam MooMaster wrote: I'm trying to write a Digital Image Processing program using the PIL library, and upon consultation of the Handbook I see that it seems to have built

Re: Color Segmentation w/ PIL?

2007-05-27 Thread jelle feringa
You might be interested in the ndimage module of scipy: http://www.scipy.org/SciPyPackages/Ndimage If you need a very serious image processing framework, ITK is might be very interesting: http://www.itk.org/ If so, have a look at the more Pythonic interface developed for it:

Re: How to get a dot's or pixel's RGB with PIL

2007-05-27 Thread [EMAIL PROTECTED]
I got it. Pass python challenge chapter 7. -- http://mail.python.org/mailman/listinfo/python-list

How to get a dot's or pixel's RGB with PIL

2007-05-26 Thread [EMAIL PROTECTED]
e.g. -- http://mail.python.org/mailman/listinfo/python-list

reading 3-d (multi-page) tiff images with python/pil

2007-05-22 Thread wbsmith
hello all, i am using python (2.5) with the PIL (latest [last?] release), and i am trying to read in these 3-d tiff images we have. basically, i am following some example code that iterates through the images in the 3-d tiff file like this: import Image import numpy img = Image.open(myFile.tif

Re: PIL and font colour

2007-04-26 Thread [EMAIL PROTECTED]
Steve Thank you for your reply. Is there a way how to find out a complementary colour for an area where I will write the text, so that the text will be seen clearly?Is there a routine in PIL or in Python somewhere? Thank you for help L. Johny wrote: I use PIL to write some text

Re: PIL and font colour.

2007-04-26 Thread [EMAIL PROTECTED]
Steve Thank you for your reply. Is there a way how to find out a complementary colour for an area where I will write the text, so that the text will be seen clearly?Is there a routine in PIL or in Python somewhere? Thank you for help Lad. I use PIL to write some text

Re: PIL and font colour.

2007-04-26 Thread Steve Holden
[EMAIL PROTECTED] wrote: Steve Thank you for your reply. Is there a way how to find out a complementary colour for an area where I will write the text, so that the text will be seen clearly?Is there a routine in PIL or in Python somewhere? Thank you for help Lad. I see

How to set font colour in PIL

2007-04-25 Thread Johny
I use PIL to write some text to a picture.The text must be seen wery clearly. I write the text to different pictures but to the same position. As pictures maybe different, colour, in the position where I write the text, is also different. Is there a way how to set the font colour so

PIL font formatting...

2007-04-25 Thread Durumdara
Hi! I wrote a web visitor counter with modpy and pil. It is must working on half-static page, so I must write this counter with jpeg image output. Everything is working good, but I need to change this counter a little, it's style isn't same as it's webpage's style. I want to make bold

Re: PIL and font colour

2007-04-25 Thread Steve Holden
Johny wrote: I use PIL to write some text to a picture.The text must be seen wery clearly. I write the text to different pictures but to the same position. As pictures maybe different, colour, in the position where I write the text, is also different. Is there a way how to set the font

PIL and font colour

2007-04-24 Thread Johny
I use PIL to write some text to a picture.The text must be seen wery clearly. I write the text to different pictures but to the same position. As pictures maybe different, colour, in the position where I write the text, is also different. Is there a way how to set the font colour so

PIL and font colour

2007-04-24 Thread Johny
I use PIL to write some text to a picture.The text must be seen wery clearly. I write the text to different pictures but to the same position. As pictures maybe different, colour, in the position where I write the text, is also different. Is there a way how to set the font colour so

PIL and font colours.

2007-04-24 Thread Johny
I use PIL to write some text to a picture.The text must be seen wery clearly. I write the text to different pictures but to the same position. As pictures maybe different, colour, in the position where I write the text, is also different. Is there a way how to set the font colour so

Re: PIL and font colours.

2007-04-24 Thread Diez B. Roggisch
Johny schrieb: I use PIL to write some text to a picture.The text must be seen wery clearly. I write the text to different pictures but to the same position. As pictures maybe different, colour, in the position where I write the text, is also different. Is there a way how to set the font

PIL and font colours.

2007-04-24 Thread Johny
I use PIL to write some text to a picture.The text must be seen wery clearly. I write the text to different pictures but to the same position. As pictures maybe different, colour, in the position where I write the text, is also different. Is there a way how to set the font colour so

Picture resolution and PIL

2007-04-06 Thread Johny
Is it possible to find out a picture resolution by using PIL package? Thanks for help L. -- http://mail.python.org/mailman/listinfo/python-list

Re: Picture resolution and PIL

2007-04-06 Thread kyosohma
On Apr 6, 1:16 pm, Johny [EMAIL PROTECTED] wrote: Is it possible to find out a picture resolution by using PIL package? Thanks for help L. Dunno. But I found some ways to read metadata that should give you the info in most cases: http://snippets.dzone.com/posts/show/768 http://hachoir.org

Re: Picture resolution and PIL

2007-04-06 Thread bearophileHUGS
Johny: Is it possible to find out a picture resolution by using PIL package By Gian Mario Tagliaretti: import PIL.Image a = PIL.Image.open(foo.jpg) a.info[dpi] (72, 72) (It may raise an exception if that information isn't available) I don't know if that can be used to read the DPI tag inside

Pil Raw Image Viewer-- How to get image mode

2007-04-05 Thread Andrew
Hello Ive been messing around with a simple raw image viewer using Pil and Tkinter However I am running into problems displaying the images they appear to be not correct I believe it is cause of the modes for the different files but I am unsure If someone could examine my code and assist

Re: Opening Photoshop EPS with PIL?

2007-04-03 Thread [EMAIL PROTECTED]
On Apr 1, 12:01 pm, Méta-MCI [EMAIL PROTECTED] wrote: .eps == vector ; not bitmap I was under the impression that .eps could be opened with PIL (and by the way, their contents are actually raster (but with a work path which shouldn't be displayed anyway) Any ideas? -- http://mail.python.org

Re: Opening Photoshop EPS with PIL?

2007-04-01 Thread M�ta-MCI
.eps == vector ; not bitmap -- http://mail.python.org/mailman/listinfo/python-list

Opening Photoshop EPS with PIL?

2007-03-31 Thread [EMAIL PROTECTED]
Hey Everyone, I am trying to get PIL to open some EPS files I have (Photoshop EPS, whatever the difference is). I'm trying to use PIL to do this, but when I run it, the following happens: from PIL import Image, ImageOps Image.open('/flora.eps') Traceback (most recent call last): File console

Color Segmentation w/ PIL?

2007-03-22 Thread MooMaster
I'm trying to write a Digital Image Processing program using the PIL library, and upon consultation of the Handbook I see that it seems to have built in functions to run Edge Detection (in the ImageFilter module), but I don't see anything about Segmentation. Are there any built-in tools to do

Re: PIL: reading bytes from Image

2007-03-12 Thread Larry Bates
: = exceptions.TypeError Traceback (most recent call last) C:\Python24\lib\site-packages\PIL\Image.py in save(self, fp, format, **params) 1303 1304 try: - 1305 save_handler(self, fp, filename) 1306

Re: PIL: reading bytes from Image

2007-03-11 Thread cyberco
: = exceptions.TypeError Traceback (most recent call last) C:\Python24\lib\site-packages\PIL\Image.py in save(self, fp, format, **params) 1303 1304 try: - 1305 save_handler(self, fp, filename) 1306 finally: 1307 # do what we

Re: PIL: reading bytes from Image

2007-03-11 Thread Max Erickson
cyberco [EMAIL PROTECTED] wrote: Thanks, I've tried the StringIO option as follows: = img = Image.open('/some/path/img.jpg') img.thumbnail((640,480)) file = StringIO, StringIO() Is the above line exactly what you tried? If it is, the comma and space in

PIL: reading bytes from Image

2007-03-10 Thread cyberco
I'm using web.py to send an image to the client. This works (shortened): print open(path, rb).read() but this doesn't: img = Image.open(path) img.thumbnail((10,10)) print img.getdata() or print img.load() How do I get the bytes of the Image object? 'getdata()' seemed the way, but

Re: PIL: reading bytes from Image

2007-03-10 Thread Max Erickson
object? 'getdata()' seemed the way, but unfortunately... getdata() returns the data in a PIL format. Saving the image, in a format your client understands, to a file like object like StringIO.StringIO is an easy path to take. Sparklines shows this in action: http://bitworking.org/projects

Re: failed to install PIL in fedora core 6

2007-02-24 Thread Michele Petrazzo
Frank Potter wrote: I use python setup.py install to install PIL in fedora with python 2.4, But I got these errors: -cut some errors- error: Python.h: No such file or directory In file included from libImaging/Imaging.h:14, from _imaging.c:78: So you don't have the python-dev package

With PIL... paste image on top of other with dropshadow

2007-02-23 Thread Peter Bengtsson
I love the dropshadow effect I managed to make with this recipe: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/474116 Here's what it can look like: http://www.peterbe.com/test/188-tequilacat.2.jpg It takes a background as a parameter but it's just a colour. What I want is to put the

Re: With PIL... paste image on top of other with dropshadow

2007-02-23 Thread Matimus
two things, change the following line: [code] back = Image.new(image.mode, (totalWidth, totalHeight), background) [/code] To: [code] back = Image.new(RGBA, (totalWidth, totalHeight), background) [/code] and then do something like this: [code] import sys bg = Image.open(sys.argv[1])

failed to install PIL in fedora core 6

2007-02-23 Thread Frank Potter
I use python setup.py install to install PIL in fedora with python 2.4, But I got these errors: running build_ext building '_imaging' extension creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/libImaging gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp

PIL problems

2007-02-15 Thread Jamie Bohr
I am trying to allow JPEG's to be used for portraits inside of Plone. I have Googled and found I need to install the Pytphon Imaging Library (PIL); after that all should be good. I did that, but I an error that tells me there is a missing library. The below is a log of what I did. From what I

Re: Re-installing Numeric and PIL Files

2007-02-08 Thread W. Watson
Robert Kern wrote: W. Watson wrote: Robert Kern wrote: W. Watson wrote: For some reason Python 2.2.4 cannot find the Numeric module. It's been suggested that I should re-install the Numeric file. How do that? Also the PIL. The three install files are: python-2.4.4.msi PIL-1.1.5.win32

Re: Re-installing Numeric and PIL Files

2007-02-08 Thread Robert Kern
not use a PIL or Numeric in 2.5. I'm sorry. sys is a module. I meant for you to execute the following Python code: import sys print sys.executable -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt

Re: Re-installing Numeric and PIL Files

2007-02-08 Thread W. Watson
have a python.exe. I do not use a PIL or Numeric in 2.5. I'm sorry. sys is a module. I meant for you to execute the following Python code: import sys print sys.executable I'm savvy about a number of languages, but not yet about Python. What py file will allow this to be executed

Re: Re-installing Numeric and PIL Files

2007-02-08 Thread Robert Kern
similar and each have a python.exe. I do not use a PIL or Numeric in 2.5. I'm sorry. sys is a module. I meant for you to execute the following Python code: import sys print sys.executable I'm savvy about a number of languages, but not yet about Python. What py file will allow

Re: Re-installing Numeric and PIL Files

2007-02-08 Thread W. Watson
folders look fairly similar and each have a python.exe. I do not use a PIL or Numeric in 2.5. I'm sorry. sys is a module. I meant for you to execute the following Python code: import sys print sys.executable I'm savvy about a number of languages, but not yet about Python. What py file

Re: Re-installing Numeric and PIL Files

2007-02-08 Thread Robert Kern
W. Watson wrote: Here's the program I ran. ### begin #!/usr/bin/python # Check mysys import sys print sys.executable ### end It put up a black screen in a flash and disappeared. Run it from the terminal or execute those lines in the interactive interpreter in IDLE. Also, you

Re: Re-installing Numeric and PIL Files

2007-02-08 Thread W. Watson
Robert Kern wrote: W. Watson wrote: Here's the program I ran. ### begin #!/usr/bin/python # Check mysys import sys print sys.executable ### end It put up a black screen in a flash and disappeared. Run it from the terminal or execute those lines in the interactive interpreter in

Re: Re-installing Numeric and PIL Files

2007-02-08 Thread W. Watson
Robert Kern wrote: W. Watson wrote: Here's the program I ran. ### begin #!/usr/bin/python # Check mysys import sys print sys.executable ### end It put up a black screen in a flash and disappeared. Run it from the terminal or execute those lines in the interactive interpreter in

Re-installing Numeric and PIL Files

2007-02-07 Thread W. Watson
For some reason Python 2.2.4 cannot find the Numeric module. It's been suggested that I should re-install the Numeric file. How do that? Also the PIL. The three install files are: python-2.4.4.msi PIL-1.1.5.win32-py2.4.exe Numeric-24.2.win32-py2.4.exe Wayne T. Watson (Watson

Re: Re-installing Numeric and PIL Files

2007-02-07 Thread Robert Kern
W. Watson wrote: For some reason Python 2.2.4 cannot find the Numeric module. It's been suggested that I should re-install the Numeric file. How do that? Also the PIL. The three install files are: python-2.4.4.msi PIL-1.1.5.win32-py2.4.exe Numeric-24.2.win32-py2.4.exe The latter two

Re: Re-installing Numeric and PIL Files

2007-02-07 Thread W. Watson
Robert Kern wrote: W. Watson wrote: For some reason Python 2.2.4 cannot find the Numeric module. It's been suggested that I should re-install the Numeric file. How do that? Also the PIL. The three install files are: python-2.4.4.msi PIL-1.1.5.win32-py2.4.exe Numeric-24.2.win32-py2.4.exe

Re: Re-installing Numeric and PIL Files

2007-02-07 Thread Matimus
For some reason Python 2.2.4 cannot find the Numeric module. It's been Is this a typo, or are you really using 2.2.4? If so, you are going to have to get the versions of Numeric and PIL that work with Python 2.2. Or, alternatively, you can install python 2.4.4 with the .msi file you listed. You

Re: Re-installing Numeric and PIL Files

2007-02-07 Thread W. Watson
Matimus wrote: For some reason Python 2.2.4 cannot find the Numeric module. It's been Is this a typo, or are you really using 2.2.4? If so, you are going to have to get the versions of Numeric and PIL that work with Python 2.2. Or, alternatively, you can install python 2.4.4 with the .msi

Re: Re-installing Numeric and PIL Files

2007-02-07 Thread W. Watson
BTW, I found a RemoveNumeric.exe and RemovePIL.exe in the C/Python24 folder, but when I try to execute them, they produce a message about only being able to use them at start-up. -- http://mail.python.org/mailman/listinfo/python-list

Re: Re-installing Numeric and PIL Files

2007-02-07 Thread Robert Kern
W. Watson wrote: Robert Kern wrote: W. Watson wrote: For some reason Python 2.2.4 cannot find the Numeric module. It's been suggested that I should re-install the Numeric file. How do that? Also the PIL. The three install files are: python-2.4.4.msi PIL-1.1.5.win32-py2.4.exe Numeric-24.2

Numeric and PIL Files?

2007-02-02 Thread W. Watson
I'm looking at some files that are related to Python: Python-2.4.2.msi Numeric-24.2.win32-py2.4.exe PIL-1.1.5.win32-py2.4.exe What are the three files? msi is the install file for MS, but what are the other two, and where can I find them? The first one no longer seems available on the http

Re: Numeric and PIL Files?

2007-02-02 Thread Gabriel Genellina
install matching Python 2.4 For new projects, the recommended library is NumPy. See http://numpy.scipy.org/ PIL-1.1.5.win32-py2.4.exe This is Python Imaging Library, available from www.effbot.org. Either choose the 1.1.5 or 1.1.6 version, but make sure it matches your python version (filename

Re: pil, histogram, mask

2007-02-01 Thread bearophileHUGS
Daniel Nogradi I don't need the histogram really, only the mean color value, but as far as I can see the 'mean' attribute only applies to an image and a mask can not be specified. You can slice parts of the image, and then use the ImageStat.Stat(im).mean On it. Bye, bearophile --

Re: pil, histogram, mask

2007-02-01 Thread Daniel Nogradi
I don't need the histogram really, only the mean color value, but as far as I can see the 'mean' attribute only applies to an image and a mask can not be specified. You can slice parts of the image, and then use the ImageStat.Stat(im).mean On it. Bye, bearophile Okay, I'll try that,

pil, histogram, mask

2007-01-31 Thread Daniel Nogradi
How does one do a histogram on only a part of an image? This is what I found in the PIL documentation about histogram( ): im.histogram(mask) = list Returns a histogram for those parts of the image where the mask image is non-zero. The mask image must have the same size as the image

Cygwin Python/PIL TCL/TK fork rebase solution

2007-01-15 Thread Ross Patterson
I recently was forced to build PIL under Cygwin Python 2.4.3 and ran into the Cygwin fork/rebase issue with TCL/TK yet again. Unfortunately, none of the rebase workarounds I found through my copious STFWing worked this time. Through trial and error I found that the following worked: rebase -b

Manually installing PIL

2007-01-07 Thread Ghirai
Hello, My host doesn't have PIL installed, and from what i can tell, they won't install it. Is there any way i can copy the needed files near my python script? I'm using Image, ImageFont, ImageDraw and ImageFilter. Thanks. -- Best regards, Ghirai. -- http://mail.python.org/mailman/listinfo

PIL broken on win32?

2006-12-20 Thread Chris Mellon
PIL 1.1.5 and 1.1.6 both seem to be broken, in different ways, on win32. 1.1.5 will load and access images, but ImageDraw fails: i = Image.open(good.jpg) d = ImageDraw.Draw(i) d.line((10,10,20,20)) Traceback (most recent call last): File input, line 1, in ? File C:\Python24\Lib\site-packages

Re: PIL broken on win32?

2006-12-20 Thread Fredrik Lundh
Chris Mellon wrote: PIL 1.1.5 and 1.1.6 both seem to be broken, in different ways, on win32. 1.1.5 will load and access images, but ImageDraw fails: i = Image.open(good.jpg) d = ImageDraw.Draw(i) d.line((10,10,20,20)) Traceback (most recent call last): File input, line 1, in ? File

help: setup Python Imaging Library (PIL) for linux server

2006-12-13 Thread moishyyehuda
Hi I uploaded a pil library to my server. The problem is that I can't access the server with a command line. You see in order for the library to work you need to run setup.py and supply commands to the server when the setup.py script runs. so is there a solution to this. can I get a predone pil

can I download Python Imaging Library (PIL) for linux.

2006-12-11 Thread moishyyehuda
can I download Python Imaging Library (PIL) for linux. -- http://mail.python.org/mailman/listinfo/python-list

Re: can I download Python Imaging Library (PIL) for linux.

2006-12-11 Thread hg
[EMAIL PROTECTED] wrote: can I download Python Imaging Library (PIL) for linux. http://effbot.org/downloads/Imaging-1.1.6.tar.gz -- http://mail.python.org/mailman/listinfo/python-list

<    2   3   4   5   6   7   8   9   10   11   >