Background:
I have an image resizing script that takes an uploaded image and resizes them to a specified size.( 100x 100 and 250x250 ) However, i have an image that keeps causing the error
PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 21600 bytes) in .....
After i've done some looking around, i found that the reason this particular image(and no thte others) was causing the error probably due to it's dimensions.(5400 * 7200 ) After further looking around on SO, i came across the solution to this problem by increasing the memory size in php.ini to 64MB.
However, from PHP GD Allowed memory size exhausted the amount of memory needed for image manipulation seems to be derived from (width * height * 8 ) which would give (5400 * 7200 * 8 =311040000 ). My php ini filehowever says
Maximum amount of memory a script may consume (128MB)
which is far less than the required amount of 311040000 which is in the region of 300+mb? If so, is there any thing i can do to solve this problem?
I'm currently working on localhost.
Thanks!