Jump to content


"Fatal error" when using createimagefromjpeg()

  • Please log in to reply
No replies to this topic

#1 HuggieBear

  • Members
  • PipPipPip
  • Advanced Member
  • 1,899 posts
  • LocationEngland, UK

Posted 16 October 2006 - 10:57 AM

Morning all,

I'm getting the following error when trying to create a thumbnail using createimagefromjpeg():

Fatal error: Allowed memory size of 8,388,608 bytes exhausted (tried to allocate 9216 bytes)

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?


Edit: I corrected this by adding the following line to the top of the script

Advice to MySQL users: Get phpMyAdmin and test your queries work there first, take half the hassle out of diagnosis, also check the reserved words list.

Links: PHP Docs :: RegEx's :: MySQL :: DevGuru :: w3schools

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users