Hello, need a function like:
<?php
$size = GetImageSize("testimg.jpg",&$info);
?>
But working not only for GIF, JPG and PNG
I want it work at least for BMP also
Thanksit should work with bmp according to php.net - <!-- m --><a class="postlink" href="http://ca2.php.net/manual/en/function.getimagesize.php">http://ca2.php.net/manual/en/function.getimagesize.php</a><!-- m -->
here's the code i use
$current_size = getimagesize("file.jpg");
$current_img_width = $current_size[0];
$current_img_height = $current_size[1];
hth
<?php
$size = GetImageSize("testimg.jpg",&$info);
?>
But working not only for GIF, JPG and PNG
I want it work at least for BMP also
Thanksit should work with bmp according to php.net - <!-- m --><a class="postlink" href="http://ca2.php.net/manual/en/function.getimagesize.php">http://ca2.php.net/manual/en/function.getimagesize.php</a><!-- m -->
here's the code i use
$current_size = getimagesize("file.jpg");
$current_img_width = $current_size[0];
$current_img_height = $current_size[1];
hth