Navigation :

Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links




Site Sponsors :

Bookmark :

Links :

domain names
wwwstores
dvd information

Downloads :

Misc :

Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming

Valid XHTML 1.0 Transitional


Valid CSS!


Display the dimensions of an image

Display the dimensions of an image using the GD library

<?php
//this is the image to check , change this
if($img = @GetImageSize("testimage.gif"))
{
//if image exists display the following information
echo "image exists , here is some info<br>";
//display width in pixels
echo "width = $img[0]<br>";
//display height in pixels
echo "height = $img[1]<br>";
}
else
{
//cant find image message
echo"image does not exist";
}
?>