Pil image module, "mode" bug..

A

Abandoned

P does mean palette, black&white is a special case of palette, with two
colors.

How can i understand the picture color ? (black &white or color or
grey)
 
M

Michal Bozon

How can i understand the picture color ? (black &white or color or
grey)

If you know how to work with RGB images, you can convert the image
from the palette mode easily:

img2 = img.convert(mode='RGB')

Anyway, always is helpful to read the tutorial or basic documentation.. ;)

MB
 
O

oruccim

If you know how to work with RGB images, you can convert the image
from the palette mode easily:

img2 = img.convert(mode='RGB')

Anyway, always is helpful to read the tutorial or basic documentation.. ;)

MB- Hide quoted text -

- Show quoted text -

no no no this is not professionalism
are there anybody who know that
 
D

Diez B. Roggisch

no no no this is not professionalism

What professionalism? This isn't a paid support service, you are aware of
that?
are there anybody who know that

Who knows what? That PIL has e.g. a histogram-function that delivers what
you need (after some thinking, I suggest you try and see at it's output
with various source images)

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top