i have the following problem:
I create an PNG image into $im.
Then i want to display it in the browser.
And i use the following code:
The problem is that it doesn't show.
If i output it in a file: ImagePNG($im,'file.png'); i can see the correct image in the file, so the code that generates the image in $im is correct.
The problem occurs when i try to output it with headers.
In Mozilla it says: "The image cannot be displayed becauase it contains some errors".
In IE it show the image with an X like it didn't find it.
So it's not just about Mozilla. (I don't have the Skype Add-on).
PS: I tried with ob_start() before the header(), ob_end_flush() at the end. Also with something like :