#44637 [Opn->Fbk]: Problem with first use of imagefill

From: Date: Fri, 04 Apr 2008 12:07:57 +0000
Subject: #44637 [Opn->Fbk]: Problem with first use of imagefill
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123959@lists.php.net to get a copy of this message
ID: 44637 Updated by: pajoye@php.net Reported By: dpenezic at srce dot hr -Status: Open +Status: Feedback Bug Type: GD related Operating System: Fedora Core 4 PHP Version: 5.2.5 Assigned To: pajoye New Comment: Please provide the file 'some/some/some.png' What does that mean: # Nothing happend on image after thiss command # From this point on everything work correct ... I really need a script to *reproduce* your problem. Previous Comments: ------------------------------------------------------------------------ [2008-04-04 12:01:35] dpenezic at srce dot hr Basic code : <?PHP $image = @imagecreatefrompng('some/some/some.png'); if ($image === false) { die ('Unable to open image'); } $color = imagecolorallocate($image, 0, 0, 0); imagefill($image, 200, 200, $color); # Nothing happend on image after thiss command # From this point on everything work correctly imagefill($image, 500, 500, $color); header("Content-type: image/png"); header("Content-Disposition: inline; filename=map.png"); imagepng($image); ?> I have map of country and fill some section with color, then show image in browser. ------------------------------------------------------------------------ [2008-04-04 11:39:18] pajoye@php.net I don't understand what you are trying to describe. Please provide a small script to reproduce your problem and add links to images if you need image to illustrate the problem or to show what you would like to achieve. ------------------------------------------------------------------------ [2008-04-04 11:21:17] dpenezic at srce dot hr Description: ------------ After loading image with imagecreatefrompng, seting colore with imagecolorallocate , and invoking first imagefill result with no effect (return code is TRUE). Next imagefill work correctly. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44637&edit=1

« previous php.bugs (#123959) next »