1 | var joi = require("joi")
|
2 | var def = require("./defaultSettings")
|
3 |
|
4 | module.exports = joi.object({
|
5 | tileSize: joi.number().integer().min(1).default(def.tileSize).description("Has to be a power of 2"),
|
6 | tmp: joi.string().default(def.tmp).description("Temp folder to store images"),
|
7 | parallelLimit: joi.number().integer().min(1).default(def.parallelLimit).description("Amount of parallel tasks that are run"),
|
8 | background: joi.string().default(def.background).description("Color to be used outside of the image"),
|
9 | imageMagick: joi.boolean().default(def.imageMagick).description("If (true) then use ImageMagick instead of GraphicsMagick"),
|
10 | autoStart: joi.boolean().default(false).description("If (true) then it will process without explicitly calling `.start`"),
|
11 | output: joi.string(),
|
12 | outputFolder: joi.string(),
|
13 | gm: joi.object(),
|
14 | file: joi.string().required(),
|
15 | minWidth: joi.number().integer(),
|
16 | minHeight: joi.number().integer()
|
17 | }).unknown() |
\ | No newline at end of file |