Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const sizeOf = require(`image-size`);//module image-size読み込み
- const f = cep.fs.showOpenDialog(false,false,`open`);//画像のパス取得
- const dimentions = sizeOf(f.data[0]);//画像データ取得
- console.log(dimentions);
- //width
- //height
- //type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement