Get image data into a variable 2


<?php
exec("identify -format \"%wx%h\" input.jpg", $a);
echo "Date and time taken = ".$a[0];
?>

Read a images width and height into a variable.