From:             
Operating system: XP
PHP version:      5.2.16
Package:          GD related
Bug Type:         Bug
Bug description:makes file but text is not there, nor border

Description:
------------
makes file but text is not there, nor border



my nearly identical codes work perfect for imagejpeg(), imagegif() and

 imagepng()



why not imagexbm()????????????????



the imagewbmp() function has the same bug!!!

Test script:
---------------
<?php



header("Content-type: image/xbm");

$mytext = $_GET['mytext'];

$fontsize  = 5;

$wide  = imagefontwidth($fontsize) * strlen($mytext) + 20;

$high = imagefontheight($fontsize) + 20;

$picture = imagecreatetruecolor($wide,$high);

$gray = imagecolorallocate($picture,223,223,223);

$blue = imagecolorallocate($picture,0,0,255);

imagefill($picture,0,0,$gray);

$black=imagecolorallocate($picture, 0, 0, 0);

imageline($picture, 0, 0, 0, $high, $black);

imageline($picture, 0, 0, $wide, 0, $black);

imageline($picture, $wide-1, 0, $wide-1, $high-1, $black);

imageline($picture, 0, $high-1, $wide-1, $high-1, $black);

imagestring($picture,$fontsize,10,10,$mytext,$blue);

imagexbm($picture); //This function is only available if PHP is compiled
with the bundled version of the GD library--is that the issue?

imagexbm($picture,mytextpic.xbm);

imagedestroy($picture);

rename("mytextpicxbm", "mytextpic.xbm"); //fixes bug in which image
functions leave out dot



?>

Expected result:
----------------
bordered xbm image with text in it

Actual result:
--------------
makes file but text is not there, nor border either

-- 
Edit bug report at http://bugs.php.net/bug.php?id=53640&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53640&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53640&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53640&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53640&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53640&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53640&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53640&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53640&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53640&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53640&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53640&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53640&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53640&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53640&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53640&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53640&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53640&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53640&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53640&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53640&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53640&r=mysqlcfg

Reply via email to