add-file-to-drive - gmに渡す引数を正しくする

This commit is contained in:
otofune 2017-11-14 03:56:39 +09:00
parent 7141b53b2b
commit 377bd2be18

View file

@ -152,7 +152,7 @@ export default (
return null; return null;
} }
// If the file is an image, calculate width and height to save in property // If the file is an image, calculate width and height to save in property
const g = gm(data, name); const g = gm(fs.createReadStream(path), name);
const size = await prominence(g).size(); const size = await prominence(g).size();
const properties = { const properties = {
width: size.width, width: size.width,