drawbot icon indicating copy to clipboard operation
drawbot copied to clipboard

Export TIFFs with CMYK color

Open andyclymer opened this issue 6 years ago • 1 comments

Frederik, Just and I were discussing this so I'll open a feature — it could be nice to be able to specify that a TIFF image be exported in the CMYK colorspace.

Frederik noticed that this line is blocking it: https://github.com/typemytype/drawbot/blob/2486f44a553f81870c07ad033fbfcfbcd3882028/drawBot/context/imageContext.py#L119

andyclymer avatar Jul 18 '19 22:07 andyclymer

samplesPerPixel need to be 5 if colorSpaceName is AppKit.NSDeviceCMYKColorSpace.

Perhaps more arguments for initWithBitmapDataPlanes_pixelsWide_pixelsHigh_bitsPerSample_samplesPerPixel_hasAlpha_isPlanar_colorSpaceName_bytesPerRow_bitsPerPixel_ should become arguments to _makeBitmapImageRep. At least samplesPerPixel, perhaps hasAlpha.

justvanrossum avatar Jul 19 '19 16:07 justvanrossum