title: Php: get image dimensions from file or resource
body: <p>I wand to get the dimensions of image files on my server using php.  I am using both imagesx getimagesize in my code and I am wondering if I should use one of the other...</p>
  
  <p>Does getimagesize pull info from the file meta data, or does it count pixels?</p>
  
  <p>If getimagesize counts pixels...
  Is there another way to attempt to get dimensions from an image file's meta data?
  Would calling both imagesx and imagesy be more effective that calling getimagesize if the image resource is already open?</p>
  
  <p>Thanks</p>