title: AWS SDK PHP version 2 - retrieving image dimensions?
body: <p>Is it possible to retrieve the dimensions of an image stored on Amazon S3?</p>
  
  <p>If the answer is no, are there any other ways around it other than downloading the image to my server to which sounds inefficient?</p>
  
  <p>I'm using version 2 of the AWS SDK for PHP.</p>
  
  <p>I've been looking through what is returned from the following code but doesn't seem to give dimensions.</p>
  
  <pre><code>$result = $s3-&gt;getObject(array(
      'Bucket' =&gt; 'BUCKET_NAME',
      'Key'    =&gt; 'KEY_NAME'
  ));
  
  var_dump($result);
  </code></pre>