#27918 [NEW]: problem in imagecreate function

From: Date: Thu, 08 Apr 2004 11:18:01 +0000
Subject: #27918 [NEW]: problem in imagecreate function
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57774@lists.php.net to get a copy of this message
From: zia_roshni at hotmail dot com Operating system: windows 2000 server PHP version: 4.3.5 PHP Bug Type: *General Issues Bug description: problem in imagecreate function Description: ------------ i m trying to use imgarecreate function... and i think there is no problem in gd... plz tell me soon about this problem i m waiting Reproduce code: --------------- Header('Content-Type: image/jpg'); $image = ImageCreate(100 , 100); $black = ImageColorAllocate($image, 0 , 0 , 0); $white = ImageColorAllocate($image, 255 , 255 , 255); ImageLine($image, 0, 0, 99, 99, $black); ImageJPEG($image); ImageDestroy($image); Expected result: ---------------- i m trying this code and i expected the resulted page has a black line Actual result: -------------- but the output is like this... ÿØÿàJFIFÿþ>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality ÿÛC    $.' ",#(7),01444'9=82<.342ÿÛC  2!!22222222222222222222222222222222222222222222222222ÿÀdd"ÿÄ ÿĵ}!1AQa"q2‘¡#B±ÁRÑð$3br‚ %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyzƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚáâãäåæçèéêñòóôõö÷øùúÿÄ ÿĵw!1AQaq"2B‘¡±Á #3RðbrÑ $4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š’“”•–—˜™š¢£¤¥¦§¨©ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖרÙÚâãäåæçèéêòóôõö÷øùúÿÚ ?ùþŠ( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( Š( ÿÙ ?> -- Edit bug report at http://bugs.php.net/?id=27918&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27918&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27918&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27918&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27918&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27918&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27918&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27918&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27918&r=support Expected behavior: http://bugs.php.net/fix.php?id=27918&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27918&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27918&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27918&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27918&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27918&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27918&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27918&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27918&r=float

« previous php.bugs (#57774) next »