note 76320 rejected from function.imagepng by nlopess
| From: | nlopess@php.net | Date: | Fri, 13 Jul 2007 19:24:46 +0000 |
| Subject: | note 76320 rejected from function.imagepng by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-128489@lists.php.net to get a copy of this message | ||
Note Submitter: ivo at sharewire dot net
----
Hi,
I'd like to know how many bytes will be written to file or stdout, _before_ I actually output
anything. I now use:
imagepng($img, "/tmp/tmp.png");
$thesize = filesize("/tmp/tmp.png");
...but this is not the way to go. Any idea?
Cheers,
Ivo