Mr Macro
25-06-2007, 04:14 PM
Ok this script will tell you the image width and height.All you need to do is make a page called image.php then go to image.php?location=DIRECTLINKTOIMAGE
For example. www.example.com/image.php?location=http://anotherexample.com/image/image.png (http://www.example.com/image.php?location=http://anotherexample.com/image/image.png)
Add this into image.php
<?php
$image_path = $_GET[location];
$info = GetImageSize( $image_path );
echo("<img src='".$image_path."'>");
echo("<br>Image Path: ".$image_path."");
echo("<br>Width: ".$info[0]."");
echo("<br>Height: ".$info[1]."");
?>
For example. www.example.com/image.php?location=http://anotherexample.com/image/image.png (http://www.example.com/image.php?location=http://anotherexample.com/image/image.png)
Add this into image.php
<?php
$image_path = $_GET[location];
$info = GetImageSize( $image_path );
echo("<img src='".$image_path."'>");
echo("<br>Image Path: ".$image_path."");
echo("<br>Width: ".$info[0]."");
echo("<br>Height: ".$info[1]."");
?>