Get image data into a variable 1


<?php
$Image_dimensions = exec("convert input.jpg -format \"%wx%h\" info:- ");
echo $Image_dimensions;
?>

Read a images width and height into a variable.