Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input for imageColorSyncProfileData #344

Open
typemytype opened this issue Dec 8, 2019 · 2 comments
Open

input for imageColorSyncProfileData #344

typemytype opened this issue Dec 8, 2019 · 2 comments

Comments

@typemytype
Copy link
Owner

@typemytype typemytype commented Dec 8, 2019

the input for the imageColorSyncProfileData could also be a .icc file next to an NSData object.

Creating a NSData object does feel very drawBotisch or pythonesk.

Creating a NSData object on the fly seems hard... see the spec for an .icc file http://www.color.org/specification/ICC1v43_2010-12.pdf

example .icc file

import AppKit

fill(1, 0, 0)
rect(20, 20, width()-40, height()-40)

data = AppKit.NSData.dataWithContentsOfFile_('path/to/AppleRGB.icc')

saveImage("test.tiff", imageColorSyncProfileData=data)

so a proposal: saveImage("test.tiff", imageColorSyncProfileData='path/to/AppleRGB.icc')

discussion started here

@justvanrossum

This comment has been minimized.

Copy link
Collaborator

@justvanrossum justvanrossum commented Dec 8, 2019

I agree nsdata is clumsy, but can a color profile influence the number of output color channels?

Never mind, I didn't read the original question properly.

@typemytype

This comment has been minimized.

Copy link
Owner Author

@typemytype typemytype commented Dec 8, 2019

nsdata is indd clumsy ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.