thumbnail.json 832 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. "about": {
  3. "trial": false,
  4. "author": {
  5. "name": "EMQ",
  6. "email": "contact@emqx.io",
  7. "company": "EMQ Technologies Co., Ltd",
  8. "website": "https://www.emqx.io"
  9. },
  10. "helpUrl": {
  11. "en_US": "https://github.com/emqx/kuiper/blob/master/docs/en_US/plugins/functions/functions.md",
  12. "zh_CN": "https://github.com/emqx/kuiper/blob/master/docs/zh_CN/plugins/functions/functions.md"
  13. },
  14. "description": {
  15. "en_US": "",
  16. "zh_CN": ""
  17. }
  18. },
  19. "libs": [
  20. "github.com/nfnt/resize@master"
  21. ],
  22. "functions": [{
  23. "name": "thumbnail",
  24. "example": "thumbnail(image,maxWidth, maxHeight)",
  25. "hint": {
  26. "en_US": "Downscales an image preserving its aspect ratio to the maximum dimensions (maxWidth, maxHeight).",
  27. "zh_CN": "将保留宽高比的图像缩小到最大尺寸(maxWidth,maxHeight)。"
  28. }
  29. }]
  30. }