Returns the named image property. This method is available if Imagick has been compiled against ImageMagick version 6.3.2 or newer.
<?php
/* Create new Imagick object */
$snake = "white_ledge_snake_close.jpg";
$im = new imagick("$snake");
/* Add comment to the image */
$im->commentImage("<center><img src=\"$snake\"></center>
<p>This snake was right in the middle of a trail that had lots of poison oak on both sides.
I poked him but instead of moving he started rattling. I tried to pick him up with some of the
sticks on the side but they kept breaking and dropping the snake. After a couple of drops he
was really pissed off at me. Since he was posed so nice I took his picture.</p>");
/* Display the comment */
echo $im->getImageProperty("comment");
# This would write a new file with the comment
# $im->writeImage("test.jpg");
# With no file name it overwrites the original file
$im->writeImage();
?>

This snake was right in the middle of a trail that had lots of poison oak on both sides. I poked him but instead of moving he started rattling. I tried to pick him up with some of the sticks on the side but they kept breaking and dropping the snake. After a couple of drops he was really pissed off at me. Since he was posed so nice I took his picture.
|
|
|