#BUGFIX
class: Image
changed: #fromImage:photometric:
support converting from rgba to rgb
--- a/Image.st Tue Feb 16 12:24:58 2016 +0100
+++ b/Image.st Mon Feb 22 16:04:01 2016 +0100
@@ -5640,7 +5640,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:[