How to use image-size

Comprehensive image-size code examples:

How to use image-size.imageSize:

112
113
114
115
116
117
118
119
120
121
122
  return false;
}


function startSplashScreen() {
  let imageFile = path.join(currentBinPath, manifestJsonFile.splashscreen.imageFile);
  imageSize(imageFile, (error, dimensions) => {
    if (error) {
      console.log(`load splashscreen error:`);
      console.error(error);