【发布时间】:2021-03-31 18:51:59
【问题描述】:
我在 Node.js Firebase 云函数中有以下字符串:
await spawn('convert', [tempFilePath, '-resize', displaySize + '^', '-gravity', 'center', '-extent', displaySize, dither, ditherValue, '-define', 'dither:diffusion-amount=85%', '-remap', tempFilePath_Map, '-type', 'Palette', 'BMP3:' + tempFilePathBitmap]);
以下选项未在 firebase 后端执行。其他一切正常。
dither:diffusion-amount=85%
我假设,我需要转义这个字符串中的一些字符。我该怎么做?
谢谢。
【问题讨论】:
-
你想要那个方括号在字符串中吗?
-
不,就是这样:dither:diffusion-amount=85%
标签: node.js firebase promise imagemagick child-process