Re: note 25674 added to function.imagejpeg

From: Date: Wed, 02 Oct 2002 04:12:26 +0000
Subject: Re: note 25674 added to function.imagejpeg
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-37505@lists.php.net to get a copy of this message
See the output buffering functions. Capture the image output into a var, use strlen(). Your note will be removed. --- estebansancho@nexien.com.ar wrote: > I need to predict the file size of an image before > saving it in the database. > The only way I found is to save the image in a temp > file with ImageJpeg() and checking it's size with > FileSize() but I think it isn't elegant at all. > I've read all the JFIF related stuff but I didn't > find the way to get the adequated quality factor in > a lower lever and more efficient manner. > > Did anyone found a better solution for this problem? > -- > http://www.php.net/manual/en/function.imagejpeg.php > http://master.php.net/manage/user-notes.php?action=edit+25674 > http://master.php.net/manage/user-notes.php?action=delete+25674 > http://master.php.net/manage/user-notes.php?action=reject+25674 > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== --- Jesus M. Castagnetto <jmcastagnetto@php.net> __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com

« previous php.notes (#37505) next »