protected static function createImage($width, $height, $color = 'transparent')
{
$rgba = static::parseColor($color);
$image = imagecreatetruecolor($width, $height);
imagefill($image, 0, 0, $rgba);
if ($color == 'transparent') {
imagecolortransparent($image, $rgba);
}
OutOfMemoryError
|
---|
Symfony\Component\ErrorHandler\Error\OutOfMemoryError: Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 201283585 bytes) at /var/www/vhosts/emergencyservicesgames.org.au/httpdocs/templates/yootheme/packages/image/src/Image/GDResource.php:187 |