php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27918 problem in imagecreate function
Submitted: 2004-04-08 07:18 UTC Modified: 2004-04-08 08:49 UTC
From: zia_roshni at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.5 OS: windows 2000 server
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zia_roshni at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-04-08 07:18 UTC] zia_roshni at hotmail dot com
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?????????????????????????????????????????????????????????????????????????? ????( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?? ?> 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-08 08:49 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 08:01:33 2024 UTC