views:

285

answers:

1

Is it possible to reduce the depth of an image using PIL? Say like going to 4bpp from a regular 8bpp.

+5  A: 

You can easily convert image modes (just call im.convert(newmode) on an image object im, it will give you a new image of the new required mode), but there's no mode for "4bpp"; the modes supported are listed here.

Alex Martelli
Thanks Alex! Great help as always !
Geo
@Geo, you're welcome!
Alex Martelli