Symfony\Component\ErrorHandler\Error\OutOfMemoryError {#1915 -error: array:4 [ "type" => 1 "message" => "Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes)" "file" => "/var/www/vhosts/profivetomag.hu/teszt.profivetomag.hu/src/ProductSysWebshopBundle/Classes/ProductSysUtility.php" "line" => 58 ] }
$new_img = \imagecreatetruecolor($new_width, $new_height); switch (strtolower(substr(strrchr((string)$file_name, '.'), 1))) { case 'jpg': case 'jpeg': $src_img = \imagecreatefromjpeg($file_path); $write_image = 'imagejpeg'; break; case 'webp': $src_img = \imagecreatefromwebp($file_path); $write_image = 'imagewebp';|
OutOfMemoryError
|
|---|
Symfony\Component\ErrorHandler\Error\OutOfMemoryError: Error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 2097152 bytes) at src/ProductSysWebshopBundle/Classes/ProductSysUtility.php:58 |