Now I have got another problem. ColorSync.

When having a composition with output image port, to create renderer I
am using input image profile if it has one, or current monitor profile
if it doesn't. Colors are OK.
But if I am using compositions without output image port (transition
protocol), I need to use "- (id)
createSnapshotImageOfType:(NSString*)type" to get image from renderer.
If image has embedded ICC profile, I am using it to create renderer.
Looks like colors still are OK. If image does not have colorsync
profile I have tried several standard profiles like generic RGB,
display profile, kCGColorSpaceGenericRGBLinear. When image is taken
out of renderer, colors are not OK.

Use Generic RGB for your images that don't have a colorspace, that's the best default

So my question would be - how to avoided "shifted" colors when using
createSnapshotImageOfType and image does not have embeded ICC profile?

Don't use NSImage as the snapshot type, as I think there's a color correction issue in some cases, try CGImage.


p.s. passing NULL as colorspace to renderer init method causes warning
that colorspace need to be RGB and non device based.


That's expected: you must specify a valid colorspace

________________________________
Pierre-Olivier Latour - [EMAIL PROTECTED]
Technologist - Apple, Inc.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to