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