Schema: Bildoperationen (removeBackground/dropShadow/flatten) und Asset-Bildmodus
- image-filter.schema.json: removeBackground (color/tolerance/fromEdges/edgeBlur/ referenceWidth), dropShadow (color/opacity/blur/offsets/padding/referenceWidth/ canvas/background), flatten; Tippfehler mitchellNetravili -> mitchellNetravali - asset.schema.json: optionaler imageProcessing-Block (access/cachePath/ allowOriginal/defaultFilter/allowedInputTypes/limits/imageFilter) - index.d.ts: passende Interfaces inkl. AssetConfig - Beispiel: examples/server/asset-image-processing.yml, demo-api imageFilter.shadow - validate-schemas.mjs: examples/server-Pattern je Schema
This commit is contained in:
1 parent
f26f8c7802
commit
913d5f4cb6
6 files changed
+263
-4
No files matched your search
@@ -13,6 +13,69 @@
|
||||
},
|
||||
"path": {
|
||||
"type": "string"
|
||||
},
|
||||
"imageProcessing": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"access": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"public"
|
||||
]
|
||||
},
|
||||
"cachePath": {
|
||||
"type": "string"
|
||||
},
|
||||
"allowOriginal": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"defaultFilter": {
|
||||
"type": "string"
|
||||
},
|
||||
"allowedInputTypes": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"image/jpeg",
|
||||
"image/png",
|
||||
"image/webp"
|
||||
]
|
||||
}
|
||||
},
|
||||
"limits": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"maxInputBytes": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 67108864
|
||||
},
|
||||
"maxPixels": {
|
||||
"type": "integer",
|
||||
"minimum": 1,
|
||||
"maximum": 40000000
|
||||
}
|
||||
}
|
||||
},
|
||||
"imageFilter": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"$ref": "image-filter.schema.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"access",
|
||||
"cachePath",
|
||||
"imageFilter"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
|
||||
Reference in new issue
Block a user