can anyone guide me some direction for the image file dimension ?
thanks : )
image height and width
Moderator: General Moderators
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
Code: Select all
// Get the dimensions of the image
$size = getimagesize($file_tmp_name);
$image_width = $size[0];
$image_height = $size[1];for a lil bit better example and further explanation, always go to the manual
http://us3.php.net/manual/en/function.getimagesize.php

http://us3.php.net/manual/en/function.getimagesize.php