Friday, October 19, 2012

PHP Get image size and type - width, height, type.

Get image size and type - width, height, type.
<?php

list($width, $height, $type) = getimagesize('/path/to/your/image/image.jpg');
echo $widht . ' - ' . $height . ' - ' . $type;

?>