Skip to content
Snippets Groups Projects
Commit f6c63fbe authored by otofune's avatar otofune
Browse files

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

parent e56f716a
No related branches found
No related tags found
Loading
......@@ -152,7 +152,7 @@ export default (
return null;
}
// 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 properties = {
width: size.width,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment