I got script that iterate all images in directory and resize them.
I got directory with 2000 images which takes some time.
I ran the script and saw that it resized only 40-50 images, then I ran it again, it resized ANOTHER 40-50 images and so on...
Do you have any idea why this is happening and how to allow the script run until it really done?