penguine Posted December 26, 2007 Share Posted December 26, 2007 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 More sharing options...
Synook Posted December 26, 2007 Share Posted December 26, 2007 Well, what does the rest of your page look like? You might have made an error. Link to comment Share on other sites More sharing options...
penguine Posted December 26, 2007 Author Share Posted December 26, 2007 I cleard all errors that exists in the script.(error_reporting(E_ALL) used for report).Uploading and display done in single page .What might be the prob? Link to comment Share on other sites More sharing options...
Synook Posted December 26, 2007 Share Posted December 26, 2007 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 More sharing options...
penguine Posted December 26, 2007 Author Share Posted December 26, 2007 Code Link to comment Share on other sites More sharing options...
boen_robot Posted December 26, 2007 Share Posted December 26, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.