Talk:New Colours Format
Binary formats description
You can get samples of these by installing trial versions of the softwares.
Adobe Color Book (.acb)
The only addition to Ates Goral’s description is a little change at the end of the file for the CS2 and CS3 color books: these files end with a 8 bytes string saying spflspot for spot colors and spflproc for process colors.
Binary Color File (.bcf)
Most of this was found by comparing with the little documented ACF format.
Byte order is big-endian. Strings are NUL padded. Except for the Lab values, all shorts are unsigned. Character encoding is Mac Roman.
Version: 8bytes string (ACF 1.0/ACF 2.1/BCF 2.0)
Library Name: 32bytes string
Library Version: 8bytes string
Copyright: 32bytes string
About Message: 512bytes string
Names: short (1=Partial/2=Full)
Rows: short
Columns: short
Entries: short
Prefix: 12bytes string
Suffix: 4bytes string
Palette Type: short (1=Spot/2=Process/8=?/16=hifi/32=?)
4 shorts. I thought it could be some model list like in the ACF format but since every file I've analyzed has RGB and CMYK values, I don't know what are these...
- The first one is 1 for the Munsell palettes which contains XYZ values, 0 for the other ones, even for the PANTONE® Process Euro file which also has XYZ values... could be a mistake...
- For the second and the third ones (still 0 or 1), I couldn't find any relationship with anything else.
- The last one is probably Preferred Model where 1=RGB and 2=CMYK. I don't know what 8 and 16 stand for.
In version ACF 1.0, the color list starts here with <Entries>*54bytes: 3 shorts (XYZ), 4 shorts (CMYK), 3 shorts (RGB), 1 short (Type) and a 32bytes string (colour name).
In higher versions (ACF 2.1 and BCF 2.0), the palette informations goes on:
About Message extender: short. If this one is 1, it's followed by a 100bytes string which is to be added to the About Message.
HiFi Inks: short
Number of HiFi Inks: short
Lab: short. If this equals 1, colours have Lab values.
22 bytes, always 0 in all the files I've analyzed
2 bytes: 0x0168 (360) for the PANTONE® HEXACHROME files, 0 for the others
If <HiFi Inks> equals 1, here comes <Number of HiFi Inks>*54 bytes: 2*10bytes string and 1 short (should be the angle used to print halftone screens; the frequency or screen ruling used in printing halftones; and the neutral density of the ink for trapping; if it's like ACF) followed by a 32bytes string (Ink name).
Color list starts here:
Lab values: 3 shorts (=0 if <Lab>=0)
CMYK values: 4 shorts
RGB values: 3 shorts
If <Palette Type> equals 8 or 16, here comes 34bytes: 1 short (number of hifi inks used), 8 pairs of shorts (ink id/ink value)
Colour Type: 1 short
If <Palette Type> equals 8 or 16, Model: 1 short
Colour Name: 32bytes string
Corel Palette (.cpl)
I'm working on it.