Stephen68 Posted April 1, 2009 Share Posted April 1, 2009 Ok I have been busting my head open trying to figure out what is wrong with my resize function. I now think I know what is wrong, the image I'm resizing is to large for php. I have read that I can change that some how but I'm not sure how. I added this line of code to my script and got the following error, anybody help me out? ini_set('memory_limit','16M'); Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 8328 bytes) in /homepages/41/d175892888/htdocs/admin/class.image-resize.php on line 36 Link to comment https://forums.phpfreaks.com/topic/152013-image-problem/ Share on other sites More sharing options...
genericnumber1 Posted April 1, 2009 Share Posted April 1, 2009 16M obviously isn't enough, try ini_set('memory_limit','32M'); What are you doing that is loading so much into memory? Link to comment https://forums.phpfreaks.com/topic/152013-image-problem/#findComment-798405 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.