I have a problem with outputting images using php. This is my code
header("Content-Type: image/png");
$fn = fopen($finalFilename,"r");
fpassthru($fn);
It does work, but not very well. I can't see any of the image properties, and for some reason netscape has a big problem with it.
I tried just loading it as an image and using the PHP functions, but the imagepng command seems to change the color depth. Also, I tried adding a billion headers, it doesn't seem to matter.
Heres an example:
http://yoda.dipole.org/image/image_id-30/
It works, but if you save, it doesn't know the image format, or the image size.
Thanks,
Jorge