
<?php
string public Imagick::getImageProperty(string $name);
?>
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;
?>
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;
?>