You can use the image functions in PHP to get the size of JPEG,
GIF, and PNG images, and if you have the GD library (available at
http://www.boutell.com/gd/) you will also be able to
create and manipulate images.
Table of Contents
GetImageSize — get the size of a GIF, JPG or PNG image