title: How do I get the dimensions of an image in AWS S3 that I'm accessing with the Storage facade in Laravel?
body: <p>I have some images stored in AWS S3, and I'm using the Storage facade in Laravel to display them on a web page.</p>
  
  <p>In a few cases, I want to get the dimensions of some images and store those dimensions in a DB.</p>
  
  <p>I was thinking of using the <code>getimagesize</code> function in PHP, but the images are not publicly available, and they can only be accessed via the Storage facade.</p>
  
  <p>How can I get the dimensions of these images? Thank you.</p>
  
  <p><strong>Edit</strong>: I should mention that this image processing is all being done for a DB migration, so using a web front-end solution like JS to get the image dimensions is not practical.</p>