From bb07471d2eb7975b26f399905d44511e272ffb42 Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Wed, 13 Feb 2013 19:52:32 -0800 Subject: [PATCH] BUG: PIL Image array interface has the wrong size for YCbCr --- PIL/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/Image.py b/PIL/Image.py index b2b5d2493..309e7609b 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -198,7 +198,7 @@ _MODE_CONV = { "RGBX": ('|u1', 4), "RGBA": ('|u1', 4), "CMYK": ('|u1', 4), - "YCbCr": ('|u1', 4), + "YCbCr": ('|u1', 3), } def _conv_type_shape(im):