function image_imagemagick_watermark in ImageMagick 7
Adds a watermark to an image.
Parameters
$image: An image object.
$watermark: A string file URI or path of the watermark image.
Return value
TRUE or FALSE, based on success.
See also
image_watermark()
File
- imagemagick_advanced/
imagemagick_advanced.module, line 150 - Provides advanced ImageMagick effects and options.
Code
function image_imagemagick_watermark(stdClass $image, $watermark) {
$image->ops[] = drupal_realpath($watermark) . '-composite -set ' . escapeshellarg('option:compose:outside-overlay') . ' false';
return TRUE;
}