You probably need this to set the Content-length: header, don't you?

I'd go into:

ob_start()
imagegif($imageResource);
// or whatever type of image you're writing
$blob = ob_get_clean();
unset($imageResource); // free the memory once you're not using the image

// size in bytes = strlen()+1, due to the \0 or null character at the end.
$byteSize = strlen($blob)+1;


On Fri, 10 Sep 2004 10:02:42 -0700, Ed Lazor <[EMAIL PROTECTED]> wrote:
> > -----Original Message-----
> > On Friday 10 September 2004 06:59, Ed Lazor wrote:
> > > Is there a way to get the size of an image created using the imagecreate
> > > function?
> >
> > Size as in ... ?
> 
> I was looking for the size of the image in bytes.
> 
> -Ed
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to