![]() |
Allowed memory size exhausted when using image service - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Allowed memory size exhausted when using image service (/showthread.php?tid=79605) |
Allowed memory size exhausted when using image service - sfarzoso - 07-07-2021 I'm using the image library to store an image on the server, all works well until I send an image of this dimension: 5184 x 3456 This is the function that I've created to store the image: PHP Code: protected function storeImage(string $path, string $fileName, string $width, string $height) <br /> <b>Fatal error</b>: Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in <b>/var/www/html/vendor/codeigniter4/framework/system/Images/Handlers/GDHandler.php</b> on line <b>220</b><br /> <br /> <b>Fatal error</b>: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in <b>/var/www/html/vendor/codeigniter4/framework/system/Log/Handlers/FileHandler.php</b> on line <b>1</b><br /> how can I fix this? RE: Allowed memory size exhausted when using image service - InsiteFX - 07-07-2021 Fixing PHP Fatal Error: Allowed Memory Size Exhausted |