diff --git a/src/main/utils/img2base64.js b/src/main/utils/img2base64.js index 81dbffc..061987f 100644 --- a/src/main/utils/img2base64.js +++ b/src/main/utils/img2base64.js @@ -15,7 +15,7 @@ const imgFromPath = async (imgPath) => { fileName, width: imgSize.width, height: imgSize.height, - extname: path.extname(item.name) + extname: path.extname(item) }) })) return results