簡體   English   中英

生成中的編碼/轉義(Node.js,子進程)

[英]Encoding/Escape in spawn (Node.js, Child-Process)

我在 Node.js Firebase Cloud Function 中有以下字符串:

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%

我假設,我需要轉義這個字符串中的一些字符。 我怎樣才能做到這一點?

謝謝。

看來,谷歌正在運行不支持抖動:擴散量的 Imagemagick 的舊版本(V.6)。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM