根据this official documentation,google cloud提供内置的Imagemagick api。
但所有样本只使用convert
api。
我尝试使用Imagemagick的composite
创建水印,但firebase控制台却给我一个错误。
所以问题是,google是否只提供来自Imagemagick的convert
api,还是支持其他api,例如composite
答案 0 :(得分:0)
您可以通过以下方式将Composite与convert结合使用:
return spawn('convert', [tmpFilePath, tmpWatermarkPath, '-gravity', 'SouthEast', '-composite', tmpFilePath])