Code might not be pretty but other than the loop variable not increasing, I think it should work the way it is. I'd try to turn on the buffer var and see what happens.
UPDATE: would it not be better for the server in terms of CPU and memory if the images were downloaded into a temp directory and sized locally rather than read from memory?
In reply to Re^2: endless loop problems
by coldfingertips
in thread endless loop problems
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |