PDA

View Full Version : Resize image's script doesn't work when much files to process



haai
October 4th, 2004, 12:45 PM
Hi,

I got a script to resize images in a directory.
The script resizes the images 3 times (640*480, 128*96 and 240*168)
The script works fine when there are not so much files to resize.
But when, I think a number of 20 files, must be resized, the script just returns a white page whitout any error.

What can be the problem?

Thx in advance!

haai
October 5th, 2004, 05:39 AM
I found the answer.

You have to edit php.ini:
- the memory size
- the maximum execution time

teiz77
October 5th, 2004, 08:11 AM
Best way to do it is to cut the script in pieces, so it is rerunning with every image. This way you never have to adjust php settings... and the script will not eat all your server resources.