Imagick::getImageWidth


wizard apg

RETURNS the image width.



<?php

int 
public Imagick::getImageWidth();

?>

 


This function has no parameters.





Returns the image width.



  1 EXERCISE   

<?php

$imagick 
= new imagick(PATH2IMGW '/jpg/aa.jpg');

$width $imagick->getImageWidth();

echo 
"The image width is " $width " pixels.";

?>

 RESULT   

aa.jpg

img/jpg/aa.jpg apr

The image width is 2736 pixels