$t) { $l = $l + 1; $x = 3; $y = ($l * $lsize) + 3 - $fsize; imagestring($image,1,$x,$y,$t,$colour); if(($l * $lsize) >= $isize) { break; } } imagejpeg($image,$attach['content'] . '.thumb'); } } } }