Re: [Image-SIG] A question

2010-11-06 Thread Fredrik Lundh
2010/10/7 אלי : > I wrote the python script below usind word editor. > > 1. How can I run it as a python script? It seems to be opened as a word > document! As Don said, use a text editor that can produce plain text files. In addition to the ones he mentioned, you can use IDLE which is included i

Re: [Image-SIG] PIL and swapping colors

2010-11-06 Thread Fredrik Lundh
On Fri, Nov 5, 2010 at 7:16 AM, loz.accs wrote: > Hi, everyone! > PIL doesn't provide screenshots making on linux, so I wrote > C-extension that uses Imlib2 to grab screenshots in raw RGBA format > and returns it to python interpreter. > > Image object (Image.fromstring) was created successfully,

Re: [Image-SIG] Bug: ImageFilter.py GaussianBlur radius not set

2010-11-06 Thread Fredrik Lundh
On Thu, Oct 7, 2010 at 8:08 PM, Even wrote: > The constructor for GaussianBlur class accepts the argument radius, with > default value 2, > but it does nothing with this argument, and instead hardcodes the radius to > 2. > Below is the code found in PIL 1.1.7: > class GaussianBlur(Filter): >     n

Re: [Image-SIG] Building Imaging 1.1.7 on CentOS 4 x86_64

2010-11-06 Thread Fredrik Lundh
On Wed, Oct 27, 2010 at 9:41 AM, Atro Tossavainen wrote: > Hello, > > I've got libjpeg-devel installed, but doing a > > python setup.py build > > with a Python 2.6.6 install that I made myself, against Imaging 1.1.7, > results in no JPEG support.  The same process works just fine on i386 > CentOS

Re: [Image-SIG] Unable to import _imaging

2010-11-06 Thread Fredrik Lundh
On Sat, Nov 6, 2010 at 10:30 PM, Esben Bugge wrote: > Hi > > I am trying to install PIL on Mac OS.X 10.6 for the purpose of using > Satchmo. After installation I tried > > $ python import PIL import Image import _imaging > Traceback (most recent call last): >   File "", line 1, in

[Image-SIG] Unable to import _imaging

2010-11-06 Thread Esben Bugge
Hi I am trying to install PIL on Mac OS.X 10.6 for the purpose of using Satchmo. After installation I tried $ python >>> import PIL >>> import Image >>> import _imaging Traceback (most recent call last): File "", line 1, in ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/