From 511adfacf7780054c9c31639c527f0c33bf32136 Mon Sep 17 00:00:00 2001 From: David Schmidt Date: Thu, 21 Mar 2013 21:00:25 +0100 Subject: [PATCH] fix png decode tRNS pattern --- PIL/PngImagePlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PIL/PngImagePlugin.py b/PIL/PngImagePlugin.py index 65c0759e5..7ed018878 100644 --- a/PIL/PngImagePlugin.py +++ b/PIL/PngImagePlugin.py @@ -70,7 +70,7 @@ _MODES = { } -_simple_palette = re.compile(b'^\xff+\x00+$') +_simple_palette = re.compile(b'^\xff+\x00\xff*$') # -------------------------------------------------------------------- # Support classes. Suitable for PNG and related formats like MNG etc.