Fixed: Function for imagesize used wrong and non declared argument

This commit is contained in:
Martin Carlberg committed 2021-08-27 09:02:26 +02:00
1 parent e697f4eca7
commit ab25fadb1e
1 file changed
+2 -2
+2 -2
View File
@@ -33,10 +33,10 @@ var fs = require("fs");
var path = require("path");
var child_process = require("child_process");
function imagesize() {
function imagesize(path) {
var result;
try {
result = child_process.execSync("imagesize -n " + p);
result = child_process.execSync("imagesize -n " + path);
} catch(err) {
console.error("imagesize failed:" + err);
}