Re: image size?

From: Date: Fri, 10 Sep 2004 18:49:25 +0000
Subject: Re: image size?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-196336@lists.php.net to get a copy of this message
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 <ed.lazor@d20news.com> 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 > >

« previous php.general (#196336) next »