Imagick::getImageProperty


wizard apg

RETURNS the named image property.



<?php

string 
public Imagick::getImageProperty(string $name);

?>       

$name


The pattern for property names.





This function returns an STRING on success false if a property with the given name does not exist.



  1 EXERCISE   

<?php

$path1 
PATH2IMGW '/jpg/1.jpg';

      
$img1 = new Imagick($path1);
      
$data1 $img1->getImageBlob();
       
       
$str01a $img1->getImageProperty('date:create');
       
$str01b $img1->getImageProperty('date:modify');
       
$str01c $img1->getImageProperty('exif:InterColorProfile');    
       
       echo 
basename($path1);
       
echo 
'<br><br>Created in:<br>' $str01a;

echo 
'<br><br>Modified in:<br>' $str01b

echo 
'<br><br>exif InterColorProfile:<br>' $str01c;       

?>

 RESULT   

1.jpg

Created in:
2023-01-02T16:30:13+00:00

Modified in:
2022-10-01T19:28:47+00:00

exif InterColorProfile:

  2 EXERCISE   

<?php

$path2 
PATH2IMGW '/psd/15.psd';

      
$img2 = new Imagick($path2);
      
$data2 $img2->getImageBlob();
       
       
$str02a $img2->getImageProperty('date:create');
       
$str02b $img2->getImageProperty('date:modify');
       
$str02c $img2->getImageProperty('exif:InterColorProfile');    
       
       echo 
basename($path2);
       
echo 
'<br><br>Created in:<br>' $str02a;

echo 
'<br><br>Modified in:<br>' $str02b

echo 
'<br><br>exif InterColorProfile:<br>' $str02c;       

?>

 RESULT   

15.psd

Created in:
2023-01-02T16:31:33+00:00

Modified in:
2022-12-18T18:33:27+00:00

exif InterColorProfile:


Copyright: