kungggyoyoyo

Results 5 comments of kungggyoyoyo

期待更新下 报错了

`utils.removeFileToPath(e.output, ${outputDir}/${videoTitle || e.output}) exports.removeFileToPath = function (sourcePath, destinationPath) { console.log('removeFileToPath:', sourcePath, destinationPath) // const sourcePath = './file.txt'; // const destinationPath = './destination/newfile.txt'; // fs.rename(sourcePath, destinationPath, (err) => { //...

``` const text1 = new FFText({ text: videoTitle, font: fontPath, // x: (width - textBoxWidth) / 2, x: `(w-text_w)/2`, // center text 居中显示 y: config.titleY, fontSize: config.titleFontSize }); ```

> @hurely Thanks, will give this a go. Didn't see the textBoxWidth anywhere in the repo. You know if textBoxHeight would also be applicable for the Y co-ordinate? textBoxWidth is...