Peter,
This does make the issue of palettes a lot clearer, thank you.
I'll have to see if it is something I can apply to my present task.
Thanks for your help, everyone!
~Denise
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailma
Hello,
D. Hartley wrote:
>>Your palette is a LookUp Table (LUT) - it is also named like this in
>>your prog ('lut') - which is a 768-long list (or as in this case, a list
>>of 256 lists, every inner list has 3 elements - so again you have 768
>>elements). So 3x256 or 1x768 is just an implementatio
D. Hartley wrote:
> Hello, everyone!
>
> I am trying to figure out what a palette actually is, how it works,
> and what PIL's "putpalette()" does with a given data set (it has to be
> a string, I believe). PIL's documentation says very close to nothing
> at all, and googling it has given me sever
Can you pls send me the image you ar working with?
D. Hartley wrote:
>>Your palette is a LookUp Table (LUT) - it is also named like this in
>>your prog ('lut') - which is a 768-long list (or as in this case, a list
>>of 256 lists, every inner list has 3 elements - so again you have 768
>>elements
> Your palette is a LookUp Table (LUT) - it is also named like this in
> your prog ('lut') - which is a 768-long list (or as in this case, a list
> of 256 lists, every inner list has 3 elements - so again you have 768
> elements). So 3x256 or 1x768 is just an implementation detail. Let's see
> the
Hey,
DH>I am trying to figure out what a palette actually is, how it works,
I did this V long time ago (10+ years) in C-- (it was an
embellished assembler) so don't kill me if this works other way in
python/PIL, but as far as i remember, it worked like this:
Your palette is a LookU
Hello, everyone!
I am trying to figure out what a palette actually is, how it works,
and what PIL's "putpalette()" does with a given data set (it has to be
a string, I believe). PIL's documentation says very close to nothing
at all, and googling it has given me several other examples of doing
wha