note 100566 rejected from function.imagepng by danbrown
| From: | danbrown@php.net | Date: | Sat, 23 Oct 2010 21:58:42 +0000 |
| Subject: | note 100566 rejected from function.imagepng by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173406@lists.php.net to get a copy of this message | ||
Note Submitter: mhorne69 at gmail dot com
----
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);