Hi all,
I was wondering if there is a function or class in php that would extract the image width and height values when the file is processed by a php script?
I use several generator scripts to build static html content and this is always an issue to produce clean, compliant code.
Any ideas?
Collecting image width & height values from a .jpg or .g
Moderator: General Moderators
http://www.php.net/image
Note GD may need to be installed, but the functions you'll want to look at are:
imagesx() / gets width
imagesy() / gets height
and also be sure to look at:
http://us2.php.net/manual/en/function.getimagesize.php
Note GD may need to be installed, but the functions you'll want to look at are:
imagesx() / gets width
imagesy() / gets height
and also be sure to look at:
http://us2.php.net/manual/en/function.getimagesize.php