note 25674 rejected from function.imagejpeg by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Wed, 02 Oct 2002 04:19:30 +0000 |
| Subject: | note 25674 rejected from function.imagejpeg by jmcastagnetto | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-37506@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?