HuggieBear Posted October 16, 2006 Share Posted October 16, 2006 Morning all,I'm getting the following error when trying to create a thumbnail using createimagefromjpeg():[quote]Fatal error: Allowed memory size of 8,388,608 bytes exhausted (tried to allocate 9216 bytes)[/quote]The file I'm trying to create a thumbnail of is 369,951 bytes in size, does anyone know why I'm getting this error, does it really allocate over 8MB of memory to create a thumbnail?I've tried to free any memory with imagedestroy() but still the same error, any ideas?RegardsHuggie[size=8pt][color=red][b]Edit:[/b][/color] I corrected this by adding the following line to the top of the script[/size] [code=php:0]ini_set("memory_limit","12M");[/code] Quote Link to comment https://forums.phpfreaks.com/topic/24082-fatal-error-when-using-createimagefromjpeg/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.