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 195084289 bytes) at /home/shidokanjudo/public_html/templates/yootheme/packages/image/src/Image/GDResource.php:187 |