Jump to content

Checking the width and height of an image


LanceT

Recommended Posts

I assume the URL you are talking about is something like:

 

http://www.domain.com/something/image.jpg

 

<?PHP

$image = http://www.domain.com/something/image.jpg;
$size=getimagesize($image);
$width=$size[0];
$height=$size[1];

?>

 

Now you just need to somehow get that url - i don't know if your users post it using a form or they can type it in the address bar or what they do...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.