Hi,

Friday, September 10, 2004, 8:59:30 AM, you wrote:
EL> Is there a way to get the size of an image created using the imagecreate
EL> function?
EL> The PHP manual section on image functions mentions getimagesize, but that
EL> only works on remote or local files.
EL> Thanks,
EL> Ed

Something like this may work if your after the output image size

<?
function jpeg_image_size($im,$quality){
  ob_start();
  imagejpeg($im,'',$quality);
  $str = ob_get_clean();
  return strlen($str);
}

-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to