I haven't used GD in years; is that better than declaring $im as lexical within the loop?
In reply to Re^2: Images created in a loop grow by chromatic in thread Images created in a loop grow by gtm