> Has somebody a example-script how i can put a other palette to a image?
here's one of the first google hits for "PIL putpalette":
http://effbot.org/zone/pil-pseudocolor.htm
> (after this the image should have similar outlook)
similar to what?
</F>
Very nicely to become answered from the major author and python genius
highly personally himself :-D
Which I want to do is; convert several "RGB" Images (or "P") with one
specified palette (to "P").
Or this (for "P")pattern; if the Source Image has the exact same colors but
wrong(other) paletteIds, how can i sort this? With List.sort()?
And give each pixel the right paletteId? That is what i mean with similar
image (source"RGB" to destinaton"P").
convert() without "WEB"?
(sry if i've enough experience with python)>=newbie
##Getting the Palette Contents Using Resize/Convert
assert im.mode == "P"
lut = im.resize((256, 1))
lut.putdata(range(256))
lut = im.convert("RGB").getdata()
^^
# lut now contains a sequence of (r, g, b) tuples