Is it possible for the width/height of a jpg/gif to be found via a php script? I want to make a pop up window with a larger image of a product, and the larger image's size varies so i would like it to open a new window which would comform to the sizes.