Re: imagemagick and file size

From: Date: Wed, 22 Aug 2001 23:01:53 +0000
Subject: Re: imagemagick and file size
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63991@lists.php.net to get a copy of this message
> function example() { > $convert = "cat $userfile | /usr/X11R6/bin/convert - $type:-"; > return $convert; > } > > the returned binary value is uploaded to the DB. > > My main problem is that I don't know how to measure the decreased image size > while its stored in the variable. Use http://php.net/strlen on your binary value. Use http://php.net/filesize on your input file. Also, you either typed too fast, or you left out the global statement or something. The code as posted won't work, unless backtick operates in global space or something really weird... -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#63991) next »