On Monday 11 February 2008, Douglas Bagnall wrote:
> TAN TH wrote:
> import Image
> im = Image.open("D:/test.gif")
> print im.format, im.size, im.mode
> >
> > GIF (409, 460) P
>
> The "P" is telling you that the image is in palette mode (as all
> gifs
>
> are), but here you are assum
TAN TH wrote:
import Image
im = Image.open("D:/test.gif")
print im.format, im.size, im.mode
> GIF (409, 460) P
The "P" is telling you that the image is in palette mode (as all gifs
are), but here you are assuming it is RGB mode:
r, g, b = im.split()
What you really want is
which is more suitable software for Image Processing
applications, Matlab or Python?
I have tried something very simple in Python, which is
from the pdf,
http://www.pythonware.com/media/data/pil-handbook.pdf
however, it gives error. anyone able to help?
>>> import Image
>>> im = Image.open("D:/t