<?php
include 'img_info.php';
$info = img_info::getimagesize( 'http://some_site.com/dir/image.jpg' );
if ( !$info )
echo 'invalid image or URL';
else
print_r( $info );
//Returns: Array ( [0] => 80 [1] => 60 [2] => 2 [3] => width="80" height="60" [bits] => 8 [channels] => 3 [mime] => image/jpeg [size] => 1954 )
?>
|