-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.schema.json
176 lines (176 loc) · 6.12 KB
/
image.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/xdm/assets/image",
"title": "Image",
"type": "object",
"meta:extensible": true,
"meta:extends": [
"http://ns.adobe.com/adobecloud/core/1.0#/definitions/common-properties",
"http://ns.adobe.com/adobecloud/core/1.0#/definitions/date-properties",
"https://ns.adobe.com/xdm/external/hal/resource#/definitions/hal",
"http://ns.adobe.com/adobecloud/core/1.0/asset",
"https://ns.adobe.com/xdm/content/content",
"https://ns.adobe.com/xdm/assets/asset",
"https://ns.adobe.com/xdm/assets/rectangular"
],
"description":
"The Image class is for raster and vector image assets, including JPEG, PNG, SVG files",
"definitions": {
"rational": {
"$id": "https://ns.adobe.com/xdm/assets/image/rational",
"title": "Rational",
"description":
"A representation of rational numbers as fractions of denominator and numerator.",
"properties": {
"tiff:numerator": {
"title": "Numerator",
"description": "The numerator of a fraction",
"type": "integer"
},
"tiff:denominator": {
"title": "Denominator",
"description": "The denominator of a fraction",
"not": {
"maximum": 0,
"minimum": 0
},
"type": "integer"
}
},
"required": ["tiff:numerator", "tiff:denominator"]
},
"image": {
"properties": {
"tiff:orientation": {
"type": "integer",
"meta:usereditable": false,
"title": "Orientation",
"description":
"The orientation of the image. Following values are permitted:\n- `1` = Horizontal (normal)\n- `2` = Mirror horizontal\n- `3` = Rotate 180 degrees\n- `4` = Mirror vertical\n- `5` = Mirror horizontal and rotate 270 degrees clockwise\n- `6` = Rotate 90 degrees clockwise\n- `7` = Mirror horizontal and rotate 90 degrees clockwise\n- `8` = Rotate 270 degrees clockwise",
"minimum": 1,
"maximum": 8,
"meta:enum": {
"1": "Horizontal (normal)",
"2": "Mirror horizontal",
"3": "Rotate 180 degrees",
"4": "Mirror vertical",
"5": "Mirror horizontal and rotate 270 degrees clockwise",
"6": "Rotate 90 degrees clockwise",
"7": "Mirror horizontal and rotate 90 degrees clockwise",
"8": "Rotate 270 degrees clockwise"
}
},
"tiff:XResolution": {
"title": "X-Resolution",
"meta:usereditable": false,
"description":
"Horizontal resolution in pixels per `resolutionUnit`.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/rational"
}
]
},
"tiff:YResolution": {
"title": "Y-Resolution",
"meta:usereditable": false,
"description": "Vertical resolution in pixels per `resolutionUnit`.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/rational"
}
]
},
"tiff:resolutionUnit": {
"meta:usereditable": false,
"title": "Resolution Unit",
"description":
"Unit used for `XResolution` and `YRresolution`. Possible values are 2 (inches) and 3 (centimeters).",
"type": "integer",
"enum": [2, 3],
"meta:enum": {
"2": "inches",
"3": "centimeters"
}
},
"photoshop:colorMode": {
"meta:usereditable": false,
"title": "Color Mode",
"description":
"The color mode or image mode determines how colors combine based on the number of channels in a color model. Different color modes result in different levels of color detail and file size. For instance, use CMYK color mode for images in a full-color print brochure, and use RGB color mode for images in web or e-mail to reduce file size while maintaining color integrity.",
"type": "integer",
"enum": [0, 1, 2, 3, 4, 7, 8, 9],
"meta:enum": {
"0": "Bitmap",
"1": "Gray scale",
"2": "Indexed color",
"3": "RGB color",
"4": "CMYK color",
"7": "Multi-channel",
"8": "Duotone",
"9": "LAB color"
}
},
"photoshop:ICCProfile": {
"meta:usereditable": false,
"type": "string",
"title": "ICC Profile",
"description":
"The [ICC color profile](http://www.color.org/iccprofile.xalter), such as AppleRGB, AdobeRGB1998.",
"meta:enum": [
"ColorMatchRGB",
"AppleRGB",
"AdobeRGB1998",
"JapanColor2002Newspaper",
"USSheetfedUncoated",
"JapanColor2001Uncoated",
"CoatedFOGRA27",
"UncoatedFOGRA29",
"USWebCoatedSWOP",
"JapanColor2001Coated",
"JapanWebCoated",
"WebCoatedFOGRA28",
"USWebUncoated",
"CoatedFOGRA39",
"USSheetfedCoated"
]
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/content/content#/definitions/content"
},
{
"$ref": "https://ns.adobe.com/xdm/assets/asset#/definitions/asset"
},
{
"$ref":
"https://ns.adobe.com/xdm/assets/rectangular#/definitions/rectangular"
},
{
"$ref": "#/definitions/image"
}
],
"required": [
"repo:id",
"repo:createdDate",
"xdm:repositoryCreatedBy",
"repo:lastModifiedDate",
"xdm:repositoryLastModifiedBy",
"repo:version",
"repo:size",
"xdm:path",
"repo:etag"
],
"meta:status": "experimental"
}