Function __global->_will_fix_corrupt_png_alpha

Definitions

sources/images.php

  • GD may have a bug with not loading up non-alpha transparency properly. Find if we need to fix that.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$image resource No No required parameter N/A N/A Image resource

Returns

  • Whether we need to do a fix
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * GD may have a bug with not loading up non-alpha transparency properly. Find if we need to fix that.
 *
 * @param  resource $image Image resource
 * @return boolean Whether we need to do a fix
 */

function _will_fix_corrupt_png_alpha($image) : bool