branch | jv |
changeset 7157 | 9c370b5a2596 |
parent 7129 | b9f00860bc01 |
parent 7156 | 97b4f12aa796 |
child 7170 | e5374bb05083 |
--- a/Image.st Mon Feb 22 09:06:26 2016 +0000 +++ b/Image.st Tue Feb 23 06:56:54 2016 +0100 @@ -5740,7 +5740,11 @@ photometric := self class defaultPhotometric "/ photometric := anImage photometric ] ifFalse:[ - photometric := photometricOrNil + photometricOrNil == #rgba ifTrue:[ + samplesPerPixel == 3 ifTrue:[ photometric := #rgb ] + ] ifFalse:[ + photometric := photometricOrNil + ]. ]. photometric == #palette ifTrue:[