You will get the width, height, type of an image and also attribute of an image, I use this function in my image upload form.Type of an image you can see from table belowYou can read a full manual here