my project is when im uploading an image automatically my program will create the thumb size.
My program work normally if the size of picture about 1024×768 But when i’m uploading image with size 1576×2379 showing error like this:
Allowed memory size of 8388608 bytes exhausted (tried to allocate 1576 bytes)
I’m using method imagcreatefromjpeg().
How can I create thumb version from big size image using PHP???
thanks
You have to edit your php.ini
Find the line with Memory limit statement and change its default value for something bigger – for example 128M