(PECL imagick 2, PECL imagick 3)
Imagick::commentImage — Adds a comment to your image
comment
The comment to add
Returns true
on success.
Throws ImagickException on error.
Example #1 Using Imagick::commentImage():
Commenting an image and retrieving the comment:
<?php
$im = new imagick();
$im->newImage(100, 100, new ImagickPixel("red"));
$im->commentImage("Hello World!");
echo $im->getImageProperty("comment");
?>