munchmo wrote in php

GD and WBMP

Ok, so I'm trying to create a WBMP image on the fly. I want to add text to an already existing image. for some reason my code isn't working, it's just outputting the original image. here's my code:

$im = imagecreatefromwbmp('diamonds.wbmp');
imagestring($im, 5, 0, 0, "1", 0);
header("Content-type: image/vnd.wap.wbmp");
imagewbmp($im);

to see this in action you can view just the WBMP output at http://wap.xenogame.com/image.php (or http://wap.xenogame.com for the file in context)