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
2009-10-05 16:49:27
Thanks Alex! Great help as always !
Geo
2009-10-05 18:06:46
@Geo, you're welcome!
Alex Martelli
2009-10-05 18:10:09