Imagick::identifyImage


wizard apg

IDENTIFEIS the Image and fetches attributes.



<?php

array public Imagick::identifyImage(bool $appendRawOutput = false);

?>

$appendRawOutput


True or false.

If true then the raw output is appended to the array.





The format of the image determines the format of the returned array (GIF, JPEG, PNG, etc.).



  1 EXERCISE   

<?php

$path 
= PATH2IMGW . '/others/IMG_0703.HEIC';
 
$imagick = new Imagick($path);
     
echo 
'<pre>';
var_dump ($imagick->identifyImage());
echo 
'</pre>';

?>

  2 EXERCISE   

<?php

$path 
= PATH2IMGW . '/others/IMG_0703.HEIC';
 
$imagick = new Imagick($path);
     
echo 
'<pre>';
var_dump ($imagick->identifyImage(true));
echo 
'</pre>';

?>

  3 EXERCISE   

<?php

$path 
= PATH2IMGW . '/others/IMG_10703.jpg';
 
$imagick = new Imagick($path);
     
echo 
'<pre>';
var_dump ($imagick->identifyImage(true));

// Try also
// var_dump ($imagick->identifyImage());

echo '</pre>';

?>

  4 EXERCISE   

<?php

$path 
= PATH2IMGW . '/others/Image1.emf';
 
$imagick = new Imagick($path);
     
echo 
'<pre>';
var_dump ($imagick->identifyImage(true));

// Try also
// var_dump ($imagick->identifyImage());

echo '</pre>';

?>