[Image-SIG] PIL Programming Questions

2006-08-18 Thread Paul Prescod
I just finished a PIL program and I feel like there may have been more efficient ways to do things I did "by hand" with the raw data. Can someone enlighten me? 1. I wanted to take 24 bit data, count the colours and make an 8-bit BMP if there are fewer than 256 colours. My brute force solution requ

Re: [Image-SIG] Convert RGB to RGBA

2006-08-18 Thread Angelo
On ven, 2006-08-18 at 19:27 +0200, Fredrik Lundh wrote: > the alpha layer controls transparency, and doesn't have any direct > relation to the RGB values. to add an alpha layer to an image, you can > use a direct convert: > > imOut = im.convert("RGBA") # sets alpha to 255 > > if you hav

Re: [Image-SIG] Convert RGB to RGBA

2006-08-18 Thread Fredrik Lundh
Angelo wrote: > Is it possible to convert a RGB image (png, tga or gif image) to RGBA > with PIL, and how to do that ? . With im.convert(mode, matrix) ? . the alpha layer controls transparency, and doesn't have any direct relation to the RGB values. to add an alpha layer to an image, you can u

[Image-SIG] Convert RGB to RGBA

2006-08-18 Thread Angelo
Hello, Is it possible to convert a RGB image (png, tga or gif image) to RGBA with PIL, and how to do that ? . With im.convert(mode, matrix) ? . a+ ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

Re: [Image-SIG] Hi, how to Register Python script

2006-08-18 Thread Fredrik Lundh
Mapo Hsueh wrote: > I am a new hand about Python. > I download the PIL 1.1.5 for Python2.4 and try to install it. > Of course, I meet the problem that windows has no such registry. of course? how did you install Python in the first place? what installation kit are you using? > And the script i

[Image-SIG] Hi, how to Register Python script

2006-08-18 Thread Mapo Hsueh
Hi, Sir   I am a new hand about Python. I download the PIL 1.1.5 for Python2.4 and try to install it. Of course, I meet the problem that windows has no such registry. And the script is found in http://effbot.org/zone/python-register.htm.   But I have no idea about how to install it. Could you

[Image-SIG] help:how to install freetype without root privilege.

2006-08-18 Thread Jingwei Sun
as the title says.and how can I install ImageMagic of Python without root privilege.can someone show me some instructions?thx. ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig