note 100566 added to function.imagepng
| From: | mhorne69 at gmail dot com | Date: | Sat, 23 Oct 2010 20:34:45 +0000 |
| Subject: | note 100566 added to function.imagepng | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173405@lists.php.net to get a copy of this message | ||
I'm trying to output an image to the browser, which works fine.. it displays as it should.
The problem comes when saving the file (right click --> save as)
It produces a corrupted png that can't be read.
tested on chrome, firefox with win vista and win 7, all produce a corrupted png.
imagesavealpha($finalImage, true);
header('Content-type: image/png');
imagepng($finalImage,NULL,0,NULL);
----
Server IP: 69.147.83.197
Probable Submitter: 81.129.191.116
----
Manual Page -- http://www.php.net/manual/en/function.imagepng.php
Edit -- https://master.php.net/note/edit/100566
Del: integrated -- https://master.php.net/note/delete/100566/integrated
Del: useless -- https://master.php.net/note/delete/100566/useless
Del: bad code -- https://master.php.net/note/delete/100566/bad+code
Del: spam -- https://master.php.net/note/delete/100566/spam
Del: non-english -- https://master.php.net/note/delete/100566/non-english
Del: in docs -- https://master.php.net/note/delete/100566/in+docs
Del: other reasons-- https://master.php.net/note/delete/100566
Reject -- https://master.php.net/note/reject/100566
Search -- https://master.php.net/manage/user-notes.php