123456789101112131415161718192021222324252627282930313233343536 |
- {
- "about": {
- "trial": false,
- "author": {
- "name": "EMQ",
- "email": "contact@emqx.io",
- "company": "EMQ Technologies Co., Ltd",
- "website": "https://www.emqx.io"
- },
- "helpUrl": {
- "en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/sqls/custom_functions.md",
- "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/sqls/custom_functions.md"
- },
- "description": {
- "en_US": "",
- "zh_CN": ""
- }
- },
- "libs": ["github.com/nfnt/resize@master"],
- "name": "image",
- "functions": [{
- "name": "resize",
- "example": "resize(image,width, height)",
- "hint": {
- "en_US": "Creates a scaled image with new dimensions (width, height) .If either width or height is set to 0, it will be set to an aspect ratio preserving value.",
- "zh_CN": "创建具有新尺寸(宽度,高度)的缩放图像。如果width或height设置为0,则将其设置为长宽比保留值。"
- }
- }, {
- "name": "thumbnail",
- "example": "thumbnail(image,maxWidth, maxHeight)",
- "hint": {
- "en_US": "Downscales an image preserving its aspect ratio to the maximum dimensions (maxWidth, maxHeight).",
- "zh_CN": "将保留宽高比的图像缩小到最大尺寸(maxWidth,maxHeight)。"
- }
- }]
- }
|