title: Finding file's pixel dimensions with javascript
body: <p>I am handling image files (mostly JPG, occasionally PNG, TIFF or GIF, never other format, if it makes a difference), and I need to make sure they are within a specified pixel size range (min/max width, min/max height). Files are all in G-Drive folders.</p>
  
  <p>I have found a lot of questions regarding determining the pixel count on screen or in an HTML environment, but I haven't been able to find a way to determine the pixel dimensions of a file.</p>
  
  <p>I want to write the height and width to a Google Sheet, where I can check compliance with the parameters. The solution needs to be in JavaScript.</p>
  
  <p><a href="https://i.stack.imgur.com/qQGL7.jpg" rel="nofollow noreferrer">Here is the code I have so far</a></p>