Re: Avoiding color transformations in PNG/UIImage/CGImage ops?
Re: Avoiding color transformations in PNG/UIImage/CGImage ops?
- Subject: Re: Avoiding color transformations in PNG/UIImage/CGImage ops?
- From: Alex Zavatone <email@hidden>
- Date: Fri, 17 Nov 2017 15:52:11 -0600
> On Nov 17, 2017, at 3:45 PM, Rick Mann <email@hidden> wrote:
>
>
>
>> On Nov 17, 2017, at 13:36 , Vince DeMarco <email@hidden> wrote:
>>
>>
>>
>>> On Nov 17, 2017, at 1:28 PM, Rick Mann <email@hidden> wrote:
>>>
>>> Nope, I'm definitely looking at pixel data. But I'll try the generic color
>>> space. I don't know how it chooses device color space when it's created
>>> absent any particular display-associated context.
>>
>> Don't use the generic color space use sRGB for both.
>>
>> Like this instead
>>
>> colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceSRGB);
>
> Thanks. Can you elaborate as to why?
>
Was that it?
Remember when I asked if the profile of the image was Profile Name: sRGB
IEC61966-2.1?
It’s something related to the storage of the image. It appears to be done
automatically in CI as part of the saving/loading of the image. I think it
actually writes data adjusted based on the color space profile.
I could be wrong though, but this feels accurate. If I’m correct, it’s part of
the CI pipeline.
Let me dig through the 2014 code now.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden