Function __global->set_images_cleanup_pipeline_settings

Definitions

sources/uploads.php

  • Set the images cleanup pipeline settings.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$recompress_mode integer No No 0 N/A N/A How to recompress, an IMG_RECOMPRESS_* constant
$maximum_dimension ?integer No No Null N/A N/A The size of the bounding box (null: none)
$watermarks ?array No No Null N/A N/A Watermark corners (top-left, top-right, bottom-left, bottom-right) (null: none)
$strip_gps boolean No No True N/A N/A Whether to strip GPS metadata

Preview

Code (PHP)

/**
 * Set the images cleanup pipeline settings.
 *
 * @param  integer $recompress_mode How to recompress, an IMG_RECOMPRESS_* constant
 * @param  ?integer $maximum_dimension The size of the bounding box (null: none)
 * @param  ?array $watermarks Watermark corners (top-left, top-right, bottom-left, bottom-right) (null: none)
 * @param  boolean $strip_gps Whether to strip GPS metadata
 */

function set_images_cleanup_pipeline_settings(int $recompress_mode = 0, ?int $maximum_dimension = null, ?array $watermarks = null, bool $strip_gps = true)