Function __global->get_max_image_size

Definitions

sources/images.php

  • Get the maximum allowed image size, as set in the configuration.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$consider_php_limits boolean No No True N/A N/A Whether to consider limitations in PHP's configuration

Returns

  • The maximum image size, in bytes
  • Type: integer
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the maximum allowed image size, as set in the configuration.
 *
 * @param  boolean $consider_php_limits Whether to consider limitations in PHP's configuration
 * @return integer The maximum image size, in bytes
 */

function get_max_image_size(bool $consider_php_limits = true) : int