#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Mon, 04 Sep 2017 18:35:51 +0200
changeset 4010 3df2676d3e8a
parent 4009 bece1481d314
child 4011 0dfddf756e27
#BUGFIX by cg class: PNGReader changed: #writeIHDRChunk
PNGReader.st
--- a/PNGReader.st	Fri Sep 01 15:36:01 2017 +0200
+++ b/PNGReader.st	Mon Sep 04 18:35:51 2017 +0200
@@ -1561,7 +1561,7 @@
     depth <= 8 ifTrue:[
         bitsPerChannel := depth
     ] ifFalse:[
-        colorType == ColorTypeRGB ifTrue:[ 
+        (colorType == ColorTypeRGB or:[colorType == ColorTypeRGBAlpha]) ifTrue:[ 
             "/ all channels must have the same nr of bits
             self assert:(bitsPerSample asSet size == 1). 
             bitsPerChannel := bitsPerSample first
@@ -1583,7 +1583,7 @@
             outStream nextPut: 0   "Non-interlaced"
         ]
 
-    "Modified: / 31-08-2017 / 17:47:12 / cg"
+    "Modified: / 04-09-2017 / 18:34:15 / cg"
 !
 
 writeImageDataChunk