note 25674 added to function.imagejpeg

From: Date: Wed, 02 Oct 2002 03:25:48 +0000
Subject: note 25674 added to function.imagejpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-37502@lists.php.net to get a copy of this message
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

« previous php.notes (#37502) next »