tags:

views:

26

answers:

1

Hi. Im using WAMP5. 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 1024x768 But when i'm uploading image with size 1576x2379 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

+1  A: 

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

tuffkid
thanks its works. it can be set in program too with ini_set("memory_limit","200M");