PDA

View Full Version : Get a image width and hight.



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]."");

?>

Drompo
25-06-2007, 04:25 PM
Thanks For Sharing.

Nice, short and basic. - Perfect

+rep
Must Spread

Mr Macro
25-06-2007, 04:27 PM
Thanks Ash. :)

Want to hide these adverts? Register an account for free!