Re: [PHP] Size of images (in bytes)

2003-01-23 Thread Leif K-Brooks
No, it's not sent to the browser. Your output buffer catches it, and the output buffer is then erased with ob_end_clean(). Oliver Witt wrote: Marek Kilimajer schrieb: Use output buffer: ob_start(); ImageJPEG($im); $imagestring=ob_get_contents(); ob_end_clean(); Thanks for the answe

Re: [PHP] Size of images (in bytes)

2003-01-23 Thread Oliver Witt
Marek Kilimajer schrieb: > Use output buffer: > ob_start(); > ImageJPEG($im); > $imagestring=ob_get_contents(); > ob_end_clean(); > > Thanks for the answer. But if I do it like that, the picture has been sent to the browser. That's what I don't want. I need to know the size of the picture befor

Re: [PHP] Size of images (in bytes)

2003-01-23 Thread Marek Kilimajer
Use output buffer: ob_start(); ImageJPEG($im); $imagestring=ob_get_contents(); ob_end_clean(); Oliver Witt wrote: "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 b

Re: [PHP] Size of images (in bytes)

2003-01-23 Thread Oliver Witt
"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, >

Re: [PHP] Size of images (in bytes)

2003-01-23 Thread 1LT John W. Holmes
> 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,

[PHP] Size of images (in bytes)

2003-01-23 Thread Oliver Witt
Hi, 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 -- PHP General Mailing List (http://www.php.n