title: How to get image size (width vs height) from S3 w/o downloading it?
body: <p>How to get image size (width vs height) from S3 w/o downloading it?</p>
  
  <p>With filesystem I am using <code>PIL</code>:</p>
  
  <pre><code>from PIL import Image
  
  def get_image_size(filepath):
      try:
          with Image.open(filepath) as image:
              return image.size
      except:
          return None
  </code></pre>
  
  <p>How to do the same with <code>boto3</code>? </p>