|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesimagepng_processing (last revision 2013-03-24 07:12 UTC by dhaliwaljee at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-03-24 14:04 UTC] laruence@php.net
[2013-03-24 14:53 UTC] pajoye@php.net
-Status: Open
+Status: Feedback
[2013-03-24 14:53 UTC] pajoye@php.net
[2013-03-24 16:24 UTC] dhaliwaljee at gmail dot com
[2013-03-24 16:24 UTC] dhaliwaljee at gmail dot com
-Status: Feedback
+Status: Closed
[2013-03-24 16:37 UTC] pajoye@php.net
-Status: Closed
+Status: Not a bug
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 05:00:01 2025 UTC |
Description: ------------ I have problem with imagepng; "imagepng()" This code shows broken image on browser, but its working fine to save the image on local disk. for example: imagepng($image,"a.png"); is working but I don't want to save this file. Test script: --------------- $image = imagecreatetruecolor(200, 400) or die("a"); $bg = imagecolorallocate($image, 255, 255, 255) or die("d"); imagestring($image, 12, 10, 100, "Hello", $bg) or die("b"); header('Content-type: image/png'); imagepng($image) or die("c"); Expected result: ---------------- "Hello" Image on Browser Actual result: -------------- Broken Image on Chrome and Firefox output: The image "http://localhost/Test/index.php" cannot be displayed because it contains errors.