State:Closed|icon_bug|database:public|icon_mari|Resolution:Fixed|TargetRelease:3.4v1|BugID:306236|
fullImagePath='/path/to/image.tif'currentChannel = mari.geo.current().currentChannel() newTopLayer = currentChannel.createPaintableLayer("NewTopLayer", None)newTopLayer.imageSet().importImages(fullImagePath, mari.ImageSet.SCALE_THE_PATCH)cconfig = newTopLayer.imageSet().imageList()[0].colorspaceConfig()print cconfig.resolveRaw() # Prints Falseprint cconfig.resolveColorspace(cconfig.COLORSPACE_STAGE_NATIVE) # Prints 'sRGB'newGroup = currentChannel.createGroupLayer('NewGroup', None) newChild = newGroup.layerStack().createPaintableLayer("NewChildLayer", None) newChild.imageSet().importImages(fullImagePath, mari.ImageSet.SCALE_THE_PATCH)cconfig = newChild.imageSet().imageList()[0].colorspaceConfig()print cconfig.resolveRaw() # Prints Falseprint cconfig.resolveColorspace(cconfig.COLORSPACE_STAGE_NATIVE) # Prints 'raw' We're sorry to hear that
Please tell us why