• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Image without profile gets an sRGB profile on Mavericks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image without profile gets an sRGB profile on Mavericks


  • Subject: Re: Image without profile gets an sRGB profile on Mavericks
  • From: edward taffel <email@hidden>
  • Date: Sun, 23 Mar 2014 20:29:07 -0400

quartz is color managed—all rasters are tagged: when you import an untagged jpeg, srgb is assigned [a likely/logical candidate to characterize an untagged jpeg]. if your app is color managed [is it?] you should present similar options to what you see when you reopen the file in photoshop [allow the user to assign or convert], otherwise you can just run with it. however note: if you emit the image in a quartz pdf stream it retains the srgb profile, which is not necessarily what you want, i.e. the image is no longer unmanaged.

has anyone discovered a way to emit an unmanaged/untagged image from a quartz pdf context?

On Mar 23, 2014, at 2:14 PM, Leonardo <email@hidden> wrote:

> I create a jpg RGB image with Photoshop "without" any icc profile.
> I import it in my app.
>
> NSBitmapImageRep    *srcRep = [NSBitmapImageRep imageRepWithData:imageData];
> NSLog(@"profileName %@", srcRep.colorSpace.localizedName);
>
> On OS X 10.8.5 I properly get "Device RGB".
> On Mavericks 10.9.2 I wrongly get "sRGB IEC61966-2.1".
>
> Therefore I can't understand whether the image:
> 1. has no profile then I have to assign a profile chosen by my user.
> 2. has its own profile then I do not touch it.
>
> I even tried CGColorSpaceCopyName. Same result.
> Did Apple changed its mind on Mavericks giving a profile to all the orphans,
> or am I missing some step?
>
>
> Regards
> -- Leonardo
>
>
> _______________________________________________
>
> 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


_______________________________________________

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


References: 
 >Image without profile gets an sRGB profile on Mavericks (From: Leonardo <email@hidden>)

  • Prev by Date: CALayer shadow and zPosition
  • Next by Date: Re: GIF frame duration
  • Previous by thread: Re: Image without profile gets an sRGB profile on Mavericks
  • Next by thread: Re: Creating NSViewController with -init.
  • Index(es):
    • Date
    • Thread