drawbot
drawbot copied to clipboard
Export TIFFs with CMYK color
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
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.