GD and WBMP

    Date: 03/01/05 (PHP Community)    Keywords: php

    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)

    Source: http://www.livejournal.com/community/php/267892.html

« XML > PHP > MySQL? || Dictionary API? »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home