Jump to content

PNG image does not display after resizing


penguine

Recommended Posts

Hi The png image doesnot displayed after resizing.when enable

header("Content-Type: image/png");

a error mesage appears The image "img.php" cannot be displayed, because it contains errors.I found and cleared all warning and errors and buffering disabled.But no use.jpg,gif format working.Is it a bug?

Link to comment
Share on other sites

Well remember that it does not have to be a PHP error that is causing the problem, even a simple echo statement in your script will corrupt the image. Post your code here; we will probably see the problem there.

Link to comment
Share on other sites

lol. That's one complicated code. What's the idea here really? Let the user upload an image, save it and let the user see it (all with proper file size and dimensions of course)?Anyway, are you sure what you get in the end is an image and not an error message? Try to use Fiddler. To be more precise, check the "raw" contents of the response.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...