Function __global->_fix_corrupt_png_alpha
Definitions
sources/images.php
- GD may have a bug with not loading up non-alpha transparency properly. Fix that.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$image | resource | Yes | No | required parameter | N/A | N/A | Image resource |
| $path | PATH | No | No | required parameter | N/A | N/A | Path to PNG file |
Preview
Code (PHP)
/**
* GD may have a bug with not loading up non-alpha transparency properly. Fix that.
*
* @param resource $image Image resource
* @param PATH $path Path to PNG file
*/
function _fix_corrupt_png_alpha(&$image, string $path)
* GD may have a bug with not loading up non-alpha transparency properly. Fix that.
*
* @param resource $image Image resource
* @param PATH $path Path to PNG file
*/
function _fix_corrupt_png_alpha(&$image, string $path)

