Re: Size of images (in bytes)
| From: | Oliver Witt | Date: | Thu, 23 Jan 2003 16:44:02 +0000 |
| Subject: | Re: Size of images (in bytes) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132856@lists.php.net to get a copy of this message | ||
"1lt John W. Holmes" schrieb:
> > After calling to the function ImageCreateFromJPEG() and before outputing
> > the image with ImageJPEG, is there a way to determine the images size in
> > bytes?
> > I want to reduce the quality more and more until it has reached a
> > certain level.
> > Thanks,
> > Olli
>
> You have the image data in a string, right? Could you relate the length of
> that string to the resulting size of the file, somehow?
>
> ---John Holmes...
After calling the funtion ImageCreateFromJPEG like this:
$im = ImageCreateFromJPEG(pic.jpg);
then $im is not a string but a resource. I don't know how to get it into a
string....
Olli