|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-08 08:49 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 17:00:01 2025 UTC |
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?????????????????????????????????????????????????????????????????????????? ????( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?( ?? ?>