[Fwd: [IMAGE-SIG] broken ImageFont?]

Daniel Michelson Daniel.Michelson@smhi.se
Wed, 20 Aug 1997 10:30:40 +0200


Hej,

> The attached version of ImageFont.py should eliminate
> this problem.

Thanks. Getting closer...

Assuming I want to use a mode "1" Image to write my text, how does one
define a palette for such an image? You see, the ImageDraw.text() method
propagates down into Image.py and the convert method.

To make a long story short:

File "/local_disk/python/lib/python1.4/Imaging/Lib/Image.py", line 220,
in _makeself
    new.palette =3D self.palette
AttributeError: palette

Or should one just concentrate on "P" Images?

best, -d

+------------------+--------------------------------------------------+
|                  | Daniel B. Michelson                              |
| /\ |\  /| |  | | | Swedish Meteorological and Hydrological Institute|
| \  | \/ | |__| | | S-601 76 Norrk=F6ping, Sweden                      |=

|  \ |    | |  | | | Telephone: +46 11 - 15 84 94                     |
| \/ |    | |  | | | Telefax:   +46 11 - 17 02 07                     |
|                  | Internet:  Daniel.Michelson@smhi.se              |
+------------------+--------------------------------------------------+

_______________
IMAGE-SIG - SIG on Image Processing with Python

send messages to: image-sig@python.org
administrivia to: image-sig-request@python.org
_______________