Image Recolor
Color treatment for the image pixels. Luminance uses Rec. 601 weights (0.299, 0.587, 0.114) on sRGB values.
Metadata
Field index
This definition uses the forms or value constraints below.
oneOf 1 · const
Replace each pixel with its luminance, exported as native a:grayscl.
Exact constraints for oneOf 1
{
"type": "string",
"const": "grayscale",
"description": "Replace each pixel with its luminance, exported as native a:grayscl."
}oneOf 2 · object
Duotone: map each pixel's luminance linearly from dark to light, exported as native a:duotone.
| Field | Type | Req. | Default | Description |
|---|---|---|---|---|
| dark | ref:ColorRef | yes | — | Color at luminance 0.
|
| light | ref:ColorRef | yes | — | Color at luminance 1.
|
dark
typeref:ColorRefrequiredyesdefault—
Color at luminance 0.
dark· Named choices (see schema for other values and constraints)"accent1""accent2""accent3""accent4""accent5""accent6""dark1""dark2""light1""light2""hyperlink""followedHyperlink""primary""secondary""accent""background""surface""surfaceAlt""text""textSecondary"
light
typeref:ColorRefrequiredyesdefault—
Color at luminance 1.
light· Named choices (see schema for other values and constraints)"accent1""accent2""accent3""accent4""accent5""accent6""dark1""dark2""light1""light2""hyperlink""followedHyperlink""primary""secondary""accent""background""surface""surfaceAlt""text""textSecondary"
Exact constraints for oneOf 2
{
"type": "object",
"additionalProperties": false,
"required": [
"dark",
"light"
],
"properties": {
"dark": {
"$ref": "#/$defs/ColorRef",
"description": "Color at luminance 0."
},
"light": {
"$ref": "#/$defs/ColorRef",
"description": "Color at luminance 1."
}
},
"description": "Duotone: map each pixel's luminance linearly from dark to light, exported as native a:duotone."
}Complete definition constraints
{
"oneOf": [
{
"type": "string",
"const": "grayscale",
"description": "Replace each pixel with its luminance, exported as native a:grayscl."
},
{
"type": "object",
"additionalProperties": false,
"required": [
"dark",
"light"
],
"properties": {
"dark": {
"$ref": "#/$defs/ColorRef",
"description": "Color at luminance 0."
},
"light": {
"$ref": "#/$defs/ColorRef",
"description": "Color at luminance 1."
}
},
"description": "Duotone: map each pixel's luminance linearly from dark to light, exported as native a:duotone."
}
],
"description": "Color treatment for the image pixels. Luminance uses Rec. 601 weights (0.299, 0.587, 0.114) on sRGB values."
}value· Named choices (see schema for other values and constraints)"grayscale"