使用jimp将图片添加到图片js

时间:2018-04-04 19:03:59

标签: javascript node.js

我有一个图片文件,我想在指定位置添加文字,我想使用jimp,所以我将.ttf转换为.fnt以便与jimp一起使用,我得到了这个错误:

Error: no named row at line 1
    at splitLine (C:\\\node_modules\parse-bmfont-ascii\index.js:49:11)
    at parseBMFontAscii (C:\Users\\node_modules\parse-bmfont-ascii\index.js:18:20)
    at C:\Users\\node_modules\load-bmfont\index.js:39:18
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
(node:11892) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:11892) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

我找不到任何有字体选项的水印模块,对此有何建议?

0 个答案:

没有答案