Suppose img is a PIL image. img.palette is then an instance, say,
myimg. How do I display what is in it? mimg.hello_in_there()? Is the depth contained in the palette? PIL-handbook-2.pdf (1.1.3) has no PaletteImage description, which is where I would expect to find out about palette methods. Where other than looking in the PIL would I find a description? Maybe this is basic Python OOP as a means to find out? Doc? When I use img.info on various images I see in a program I'm using, I see this: # wagon.gif: {'compression': 'raw', 'dpi': (1, 1)} # sentintel image: {} # moon_surface.tif: {'compression': 'raw', 'dpi': (1, 1)} # v....bmp : {'compression': 0} sentinel image is an image created by the hardware that interfaces with the software, and is 640x480 by 8-bits. v....bmp is one of the output files from the h/w that I've saved as bmp. Is there a description somewhere of what the dictionary output contains? I guess it's sort of obvious, but do other formats have more? --
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
The Obama Administration plans to double the production
in solar energy from 1% to 2% of the total energy
supply in the next few years. One nuclear reaction
would do the same. Heard on Bill Wattenburg, KGO-AM
"Less than all cannot satisfy Man." -- William Blake
|
_______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig