Re: Re: imagemagick and file size

From: Date: Thu, 23 Aug 2001 06:42:55 +0000
Subject: Re: Re: imagemagick and file size
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-64048@lists.php.net to get a copy of this message
Yep, I know. I just wrote the function as a general description. thanks for the tip on strlen, thats what I need. ----- Original Message ----- From: "Richard Lynch" <ceo@l-i-e.com> To: <php-general@lists.php.net> Sent: Thursday, August 23, 2001 2:01 AM Subject: [PHP] Re: imagemagick and file size > > 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... > -------------------------- Canaan Surfing Ltd. Internet Service Providers Ben-Nes Michael - Manager Tel: 972-4-6991122 http://sites.canaan.co.il --------------------------

« previous php.general (#64048) next »