Symfony\Component\ErrorHandler\Error\OutOfMemoryError {#6118 -error: array:4 [ "type" => 1 "message" => "Allowed memory size of 536870912 bytes exhausted (tried to allocate 49152 bytes)" "file" => "/ck.przemysl.pl/libraries/ic_library/Thumb/Create.php" "line" => 85 ] }
if (preg_match("/.jpg/i", "$source_image") || preg_match("/.jpeg/i", "$source_image"))
{
// JPEG type thumbnail
$destImage = imagecreatetruecolor($width, $height);
$sourceImage = imagecreatefromjpeg($source_image);
imagecopyresampled($destImage, $sourceImage, 0, 0, $x, 0, $width, $height, $w, $h);
imagejpeg($destImage, $destination_image_url, $quality);
imagedestroy($destImage);
}
OutOfMemoryError
|
---|
Symfony\Component\ErrorHandler\Error\OutOfMemoryError: Error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 49152 bytes) at /ck.przemysl.pl/libraries/ic_library/Thumb/Create.php:85 |