Python, PIL and 16 bit per channel images

Chris Colbert sccolbert at gmail.com
Mon Jan 25 17:57:07 EST 2010


On Mon, Jan 25, 2010 at 5:04 PM, Peter Chant <peteRE at mpeteozilla.vco.uke>wrote:

> Does anyone know whether PIL can handle 16 bit per channel RGB images?
> PyPNG site (http://packages.python.org/pypng/ca.html) states PIL uses 8
> bits
> per channel internally.
>
> Thanks,
>
> Pete
>
>
> --
> http://www.petezilla.co.uk
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

Mode

The mode of an image defines the type and depth of a pixel in the image. The
current release supports the following standard modes:

   -

   *1* (1-bit pixels, black and white, stored with one pixel per byte)
   -

   *L* (8-bit pixels, black and white)
   -

   *P* (8-bit pixels, mapped to any other mode using a colour palette)
   -

   *RGB* (3x8-bit pixels, true colour)
   -

   *RGBA* (4x8-bit pixels, true colour with transparency mask)
   -

   *CMYK* (4x8-bit pixels, colour separation)
   -

   *YCbCr* (3x8-bit pixels, colour video format)
   -

   *I* (32-bit signed integer pixels)
   -

   *F* (32-bit floating point pixels)


   http://www.pythonware.com/library/pil/handbook/concepts.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100125/29d38bc1/attachment.html>


More information about the Python-list mailing list