Jump to content

"Fatal error" when using createimagefromjpeg()


HuggieBear

Recommended Posts

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?

Regards
Huggie

[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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.