I've pulled info out of a database and used the GD library to create a dynamic image using PHP. It's working perfectly, and if I go to the output file (image.png) it shows up exactly as it should. However, when I try to use it in a document (<img src="image.png">) it shows up as a dot. Basically, it seems as if it cannot determine the image size. Even if I force an image size using height and width tags, it seems to ignore these and just do whatever it wants (for example, my 580x388 img came out 580x10 or so).
Is there any way, when creating an image with PHP, to send its dimensions as headers or something so the browser knows? If I right click and view properties, it shows blank entries for height and width.
What am I doing wrong?