Hi there guys!
Lately I’ve been trying to use GD to generate dynamic images. My problem its that the code must be neccesarily before the <html> tag (if not an error like this appear in the browser:
When do it ‘right’ all the HTML its not considered, and the browser just shows the image. Its this normal in GD? Is there something wrong with my PHP or GD (PHP 5.1.2 - GD 2.0.28)?
I even try putting the image in a separate file and include() it. Same story happen, a lot of understanding code appear.
My final objective its to create thumb images from a gallery (resizeing and creating new pics from the original images so the browser doesn’t have to load the original big sized images).
If you’re just making an image to display in the browser I believe you’ll need to add the header info before you start with the image (really before the imagepng() function).