imageset.json
is a JSON format file that is responsible for describing various aspects of an Origami Imageset.
Type | String |
---|---|
Required | true |
Must be a the relative path to the folder which contains the images within the imageset.
{
"sourceDirectory": "src"
}
Type | String |
---|---|
Required | true |
Defines the custom url scheme for images in this imageset when requested via the Origami Image Service, this must be a unique name across all the imagesets:
{
"scheme": "ftanimal"
}
Type | Array |
---|---|
Required | true |
A list of image objects for each image in the imageset. This section is automatically generated by the Origami Image Set Tool. Each object in the list accepts the following properties:
required:
name
: type String
. The name which will be used together with the scheme to requested the image via the Origami Image Serviceextension
: type String
. The extension for the file type of the imagepath
: type String
. The relative path to the image within the imagesetpreviousHash
: type String
or null
or undefined
. The previous hash of the image, this will be null
or undefined
if the image has never been updatedhash
: type String
. The SHA-512 hash value of the imageurl
: type String
. The production Origami Image Service url which points to the imageoptional:
deprecated
: type String
. A deprecation message for the image to indicate the image should no longer be used. The existence of the deprecated key with an empty string indicates the image is deprecated but has no specific deprecation message.{
"images": [
{
"name": "cat",
"extension": "svg",
"path": "src/cat.svg",
"previousHash": "a6441d64330b058d829f17d515864c2a2b0a8232d69c0a547edbe4c959967dfabad9b91df9670b1126273880fd6648e9c62a88839ee0467f9aa9e5006f7e0406",
"hash": "a6441d64330b058d829f17d515864c2a2b0a8232d69c0a547edbe4c959967dfabad9b91df9670b1126273880fd6648e9c62a88839ee0467f9aa9e5006f7e0406",
"url": "https://origami-images.ft.com/ftanimal/v1/cat-a6441d64330b058d829f17d515864c2a2b0a8232d69c0a547edbe4c959967dfabad9b91df9670b1126273880fd6648e9c62a88839ee0467f9aa9e5006f7e0406"
},
]
}
This example joins all of the property snippets outlined above:
{
"sourceDirectory": "src",
"scheme": "ftanimal",
"images": [
{
"name": "cat",
"extension": "src",
"path": "src/cat.svg",
"previousHash": "a6441d64330b058d829f17d515864c2a2b0a8232d69c0a547edbe4c959967dfabad9b91df9670b1126273880fd6648e9c62a88839ee0467f9aa9e5006f7e0406",
"hash": "a6441d64330b058d829f17d515864c2a2b0a8232d69c0a547edbe4c959967dfabad9b91df9670b1126273880fd6648e9c62a88839ee0467f9aa9e5006f7e0406",
"url": "https://origami-images.ft.com/ftanimal/v1/cat-a6441d64330b058d829f17d515864c2a2b0a8232d69c0a547edbe4c959967dfabad9b91df9670b1126273880fd6648e9c62a88839ee0467f9aa9e5006f7e0406"
},
]
}