feed->entry['circulation']; // make sure it's a number $readers = is_numeric($readers) ? $readers : '0'; // 39 is the base position; 6 the width of each char $xpos = 39 - (strlen($readers) * 6); // Create the image from the base image $img = imagecreatefromgif('cisco.gif'); $color = imagecolorallocate($img, 0x00, 0x66, 0xCC); imagestring($img, 2, $xpos, 2, $readers, $color); // Save the image imagegif($img, 'cisco_output.gif'); ?>