Function __global->add_pic_watermarking

Definitions

sources/images_cleanup_pipeline.php

  • Add image watermarking.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$image resource No No required parameter N/A N/A GD image resource
$watermarks array No No required parameter N/A N/A Watermark corners (top-left, top-right, bottom-left, bottom-right)

Returns

  • A pair: Adjusted GD image resource, Whether a change was made
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Add image watermarking.
 *
 * @param  resource $image GD image resource
 * @param  array $watermarks Watermark corners (top-left, top-right, bottom-left, bottom-right)
 * @return array A pair: Adjusted GD image resource, Whether a change was made
 */

function add_pic_watermarking($image, array $watermarks) : array